note 28362 added to function.ignore-user-abort
| From: | php-general at lists dot php dot net | Date: | Fri, 10 Jan 2003 15:55:30 +0000 |
| Subject: | note 28362 added to function.ignore-user-abort | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41964@lists.php.net to get a copy of this message | ||
in reference to :
>a sample:
>=======
>$file="/etc/test.cron"; #contains the cronjobs like
>0 * * * * php f /usr/local/httpd/htdocs/php/mail.php /dev/null 2>&1
>
> system("crontab $file 2>&1"); #set file into crontab
> system("crontab -r 2>&1"); #register actual crontab
>
> The php script mail.php will now be executed every hour :)
This will only work if the php API has been installed as cgi it will not work it it has been
installed as apache
--
http://www.php.net/manual/en/function.ignore-user-abort.php
http://master.php.net/manage/user-notes.php?action=edit+28362
http://master.php.net/manage/user-notes.php?action=delete+28362
http://master.php.net/manage/user-notes.php?action=reject+28362