Re: include defer from cli to apache

From: Date: Thu, 03 Aug 2006 18:53:54 +0000
Subject: Re: include defer from cli to apache
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-240075@lists.php.net to get a copy of this message
On Fri, July 28, 2006 7:25 pm, Martin Marques wrote: > I' trying to include files from a script which will be executed from > CLI via cron. > > Now, if I execute the script from the command line it works OK, but > when it's executed via cron I fails to include a file, which is being > included via and include from the script. It looks like when including > a file directories are changes, and so the new include doesn't work as > it's referencing from a different directory. > > Is there something I should be aware of? cron runs the script from your home directory, not the directory the script lives in. The easiest thing is to just specify the full path to the include files for the cron jobs. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#240075) next »