[CentOS] Strange thing with Apache and PHP / TYPO
lists at tuxdoit.com
Thu Oct 5 20:53:36 UTC 2006
It's a typo.
The file is config.inc.php everywhere
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"
> > "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
> 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
>> I have this line (10) of code in 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
>> 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:
>> and nothing :(
More information about the CentOS