Re: PATHS again.

From: Date: Mon, 21 Apr 2003 01:14:41 +0000
Subject: Re: PATHS again.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144582@lists.php.net to get a copy of this message
On Sun, 20 Apr 2003, C.R. wrote: > I'm thinking maybe going with ASP or something, 'cause this path problem is > just driving me insane. Everytime I think I have it - somthing else screws > up. Why the hell can I not include a file that is in the same directory as > the file that's calling it. Millions of people use PHP and about 99% of them use includes, so, let's assume most people don't have such problems. It may be frustrating now but you'll be screaming Eureka before you know it :) > Warning: Unknown(d:\websites\project\poll\example.php): failed to create > stream: No such file or directory in Unknown on line 0 This is a strange looking error and looks like you (the web server) lacks permission to view example.php which is why it says 'Unknown on line 0' as it lacks permissions to know much else. Being that I didn't even think Windows had permissions (or at least permissions that matter here), I have no clue how to solve that or if it's the problem. But, the above error has nothing to do with includes. Note: example.php dies on line 0. > This is example.php which resides in d:\websites\project\poll. It's the > entire file - 10 lines..... > > <?php > > include ("dbconnect.php"); **** this also resides in > d:\websites\project\poll, so why am I getting the above error? They are both > in the same directory, the spelling is coreect etc, etc. .***** [snip] What's your include_path set to? If you want to do relative includes you'll want a . in it. Please run the following in the poll directory:: var_dump(ini_get('include_path')); But anyway, includes doesn't look like your problem here. Regards, Philip

« previous php.general (#144582) next »