Page 1 of 1

Problem with Crontab

Posted: Tue Jan 22, 2008 7:09 am
by pas
Hello,
I have upgraded PHP 4.4.7 to PHP 5.2.4 by compiling.
After this upgrade I have now this problem: I can't include or require other php-files in scripts executed by the crontab.
My Crontab in Confixx:

Code: Select all

* * * * * php ~/html/php/ccb/cron.php > /dev/null
Now I always get the error (by mail):

Code: Select all

PHP Warning:  include(../system.php): failed to open stream: No such file or directory in /home/www/web1/html/php/ccb/cron.php on line 2
PHP Warning:  include(): Failed opening '../system.php' for inclusion (include_path='.:/usr/lib/php') in /home/www/web1/html/php/ccb/cron.php on line 2
 
But the file system.php exists here: /home/www/web56/html/php/system.php and the script works well by executing in browser (http://....).
The include_path /usr/lib/php is for the PEAR-Libary.
Any solution?

My System:
openSuse 10.1
Apache 2.2.0
Administration: SWSoft Confixx 3.3 Pro.
Thanks!

Re: Problem with Crontab

Posted: Tue Jan 22, 2008 7:59 am
by VladSun
Use absolute paths instead of relative.

Re: Problem with Crontab

Posted: Tue Jan 22, 2008 11:48 am
by pas
But have I something in the PHP.ini false?
It worked in PHP 4.4.7...

Thanks!