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

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

 



On Mon, Apr 7, 2008 at 11:24 AM, Stut <stuttle@xxxxxxxxx> 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@xxxxxxxxx> 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!

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux