Hi,

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

Regards,
Deckard

Ben Ramsey wrote:
> On 10/4/06 8:32 PM, Deckard wrote:
>> Hi,
>>
>> I have this line of code:
>> 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"
> 
> The first thing that jumps out at me is that your error says it failed
> to open ../config.inc, but you say the file is named config.inc.php.
> Check your code to ensure that you have:
> 
> include_once('../config.inc.php');
> 
> and not:
> 
> include_once('../config.inc');
> 
> If config.inc.php is the correct file you want to include and you're
> trying to include config.inc, then it obviously can't find it because it
> doesn't exist. :-)
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to