RE: [PHP] PHP + Cron jobs
| From: | Richard Lynch | Date: | Sat, 27 Sep 2008 16:48:15 +0000 |
| Subject: | RE: [PHP] PHP + Cron jobs | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281045@lists.php.net to get a copy of this message | ||
_______________________________________
O/H Waynn Lue ??????:
Perhaps this would do the job much better.
12 6 * * * php -f /home/foo/temp.php
Probably no different, unless the new-fangled -f implies -q, and he's running the new version
of PHP, which I doubt.
Also consider an alternative solution. Add this on the first line of the
php script:
#! /usr/bin/php
This will work if that is where his CLI php lives.
If that's his CGI php that the cron is finding, and his shell PHP is something else, it
won't change a thing.
_______________________________________________________
The information in this email or in any file attached
hereto is intended only for the personal and confiden-
tial use of the individual or entity to which it is
addressed and may contain information that is propri-
etary and confidential. If you are not the intended
recipient of this message you are hereby notified that
any review, dissemination, distribution or copying of
this message is strictly prohibited. This communica-
tion is for information purposes only and should not
be regarded as an offer to sell or as a solicitation
of an offer to buy any financial product. Email trans-
mission cannot be guaranteed to be secure or error-
free. P6070214