Re: Really strange
| From: | Ben Ramsey | Date: | Thu, 05 Oct 2006 01:09:46 +0000 |
| Subject: | Re: Really strange | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-242625@lists.php.net to get a copy of this message | ||
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. :-) -- Ben Ramsey http://benramsey.com/