Re: [CentOS] Strange thing with Apache and PHP / TYPO

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I'm sorry,

It's a typo.
The file is config.inc.php everywhere

Best Regards,
AR

replies-lists-centos@xxxxxxxxxxxxxxxxxxxxx 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@xxxxxxxxxxx>
>> To: CentOS mailing list <centos@xxxxxxxxxx>
>> 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 :(
> 
> 

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux