RE: where php at?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[snip]
/usr/local/bin/php


Now, to figure out what command I need to run a php script from there.
[/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.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux