I'm sorry, It's a typo. The file is config.inc.php everywhere Best Regards, AR replies-lists-centos at listmail.innovate.net wrote: > the filename that you claim to have in your "include_once" statement: > > > include_once('../config.inc.php'); > > does not match the filename being reported on the "failed to open" > error: > > > "Warning: main(../config.inc): failed to open stream > > you should check your code since if you're doing a copy/paste of the > include line from the code, (i assume you're doing a copy/paste of the > error as that's a lot to type), then that's not the code that you're > running. > > i.e., you may be looking at one set of code but running a different set. > > - Rick > > > ------------ Original Message ------------ >> Date: Thursday, October 05, 2006 08:25:53 PM +0100 >> From: AR <lists at tuxdoit.com> >> To: CentOS mailing list <centos at centos.org> >> Subject: [CentOS] Strange thing with Apache and PHP >> >> Hi, >> >> I have this line (10) of code in PHP: >> include_once('../config.inc.php'); >> >> I'm 100% sure that the file config.inc.php is a directory up. >> >> config.inc.php is in /var/www/html >> and the file that calls it is in >> /var/www/html/classes >> >> nevertheless, i'm getting the error: >> "Warning: main(../config.inc): failed to open stream: No such file or >> directory in /var/www/html/classes/dBInsert.php on line 10 >> >> Warning: main(): Failed opening '../config.inc' for inclusion >> (include_path='.:/usr/share/pear') in >> /var/www/html/classes/dBInsert.php on line 10" >> >> Permissions and ownership are ok. >> >> I even set: >> include_once('/var/www/html/config.inc.php'); >> and nothing :( > >