Re: crontab, PHP and MACOSX

From: Date: Wed, 04 Apr 2007 21:44:03 +0000
Subject: Re: crontab, PHP and MACOSX
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-252070@lists.php.net to get a copy of this message
On 3/28/07, Chris <dmagick@gmail.com> 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

« previous php.general (#252070) next »