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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php