include_path problem in executing program from root folder

From: Date: Mon, 21 Jun 2004 14:05:05 +0000
Subject: include_path problem in executing program from root folder
Groups: php.general 
Request: Send a blank email to php-general+get-188742@lists.php.net to get a copy of this message
Hello, One of my PHP programs called dailybatch.php3 includes a file in its parent directory. The link is **** include "../db_mysql.inc" **** dailybatch.php3 is invoked from the crontab command or run from the command line in the root /www folder, gives an error indicating that "../db_mysql.inc not found". However, when you change to the folder where dailybatch.php3 is present and execute the program, there are no errors and the program executes. The include_path has "." folder in it. What could possibly be the problem with executing the program from the /www folder? With Regards, Sharat _________________________________________________________________ The MSN mobile contest! Free talktime ‘n smart phones! http://server1.msn.co.in/sp04/mobilecontest Register now to win!

« previous php.general (#188742) next »