RE: [PHP] where php at?
| From: | Jay Blanchard | Date: | Mon, 27 Mar 2006 20:26:18 +0000 |
| Subject: | RE: [PHP] where php at? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-232661@lists.php.net to get a copy of this message | ||
[snip]
http://www.unixgeeks.org/security/newbie/unix/cron-1.html
Now, you can do this one of two ways
17 8 * * * /usr/local/bin/php /path/to/your/script.php
Or you can add a bash line to the top of your file and then make sure to
have one blank line after the bash line
#!/usr/local/bin/php
/* start your script here */
The bash line may not work depending on how the host is set up.
[/snip]
And the cron line should then read (with a bash);
17 8 * * * /path/to/your/script.php