Re: Cron + PHP
| From: | Joe Stump | Date: | Thu, 08 Feb 2001 23:15:41 +0000 |
| Subject: | Re: Cron + PHP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38830@lists.php.net to get a copy of this message | ||
#!/path/to/php -q
<?
mail('user@foo.com','foo','foo');
?>
chmod +x foo.php
0 0 * * * /path/to/foo.php > /dev/null
--Joe
On Thu, Feb 08, 2001 at 07:36:57PM -0300, GAYTAN BAHAMONDEZ DANIEL EDUARDO wrote:
> How can i make a crontab run a php file???
> should i add something like this in the file:
>
> path/to/file.php ????
>
>
> Thanks in advance...
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
-------------------------------------------------------------------------------
Joe Stump, PHP Hacker, joestump98@yahoo.com -o)
http://www.miester.org http://www.care2.com
/\\
"It's not enough to succeed. Everyone else must fail" -- Larry Ellison _\_V
-------------------------------------------------------------------------------