Re: [Fwd: [ph-linux-newbie] help on cron]

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



On 7 Nov 2002, Joseph Syjuco wrote:

> worked but when i put it in crontab
> * * * * * php /usr/local/apache/htdocs/xxx.php
> it didnt work ... it didnt spew any errors ... just did nothing

Try editing your php script so the first line looks something like this:

#!/usr/local/bin/php -q
<?php
script goes here
?>

Note that the /usr/local/bin part might be different on your box than on 
mine.



[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux