Re: Automated Script
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Automated Script

From: R. Rajesh Jeba Anbiah <ng4rrjanbiah@rediffmail.com>
Date: Thu Oct 06 2005 - 19:09:15 CEST

chotiwallah wrote:
> not possible using php only.
>
> three possible ways around:
>
> 1. use some web based cron (can't remember an url at the moment, sorry)

   FWIW, it's webcron.com

  <snip>

> 3. use the most frequented page of your website to call the automated
> script (using a blind image, for instance)

   FWIW, you don't have to go for webbug, it's enough that you put your
own cron_handler() function in frequently accessed PHP file. May also
use auto_prepend_file feature
<http://in2.php.net/ini.core#ini.auto-prepend-file>, (but it's a
discouraged approach). But, as you said, it's like reinventing the
wheel.

   Possibly, the pure PHP solution is to use sleep() function and set
the maximum execution time to 0 (no limit) and to use it in command
line (so, that it doesn't use webserver resources).

--
  <?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com    Blog: http://rajeshanbiah.blogspot.com/
Received on Tue Oct 18 02:32:48 2005