Re: Include fails when "./" is in front of file name

From: Date: Mon, 07 Apr 2008 15:37:38 +0000
Subject: Re: Include fails when "./" is in front of file name
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-272646@lists.php.net to get a copy of this message
On Mon, Apr 7, 2008 at 11:24 AM, Stut <stuttle@gmail.com> wrote: > > To the OP: Check that your include_path contains '.', if it doesn't add it > and see if that fixes your problem. He has . in the include path.... On Sun, Apr 6, 2008 at 2:17 PM, Noah Spitzer-Williams <noahsw@gmail.com> wrote: > PHP.ini's include path is: include_path = ".;.\includes;.\pear" .... but even if it weren't, explicitly-calling ./ forces the include to the local directory. You're right to point it out that it should be included, though.... I've actually seen some boxes where . was not in the path. I've even seen some cases where .. was erroneously included instead. There's treachery afoot! However, take a look at his include path.... Noah, I see no reason why PHP's include path should have .\pear in there. Not sure about .\includes, but .\pear likely doesn't exist in every CWD/PWD (depending on your preference in system semantics) from where it's called, and the same would go for .\includes. -- </Daniel P. Brown> Ask me about: Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo., and shared hosting starting @ $2.50/mo. Unmanaged, managed, and fully-managed!

« previous php.general (#272646) next »