Re: crontab, PHP and MACOSX

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

 



On 3/28/07, Chris <dmagick@xxxxxxxxx> wrote:


> There is a lot of require_once(' ') in the script and if i am not in the
correct folder the script won't work.

That is something php related ;)

Change your require to something like this:

require(dirname(__FILE__) . '/other_file_name.php');

--
Postgresql & php tutorials
http://www.designmagick.com/




Thanks for the hint. I found s solution to execute the php script from the
cron scheduler: add a "&" at the end of the crontab command........

Thank for your help.

yvan

[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