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 12:24 PM, Noah Spitzer-Williams <noahsw@xxxxxxxxx> wrote:
> Here's the error I get:
>
> Warning: include(.\file.inc.php) [function.include]: failed to open stream:
> No such file or directory in C:\Inetpub\httpdocs\test.php on line 3
>
> Warning: include() [function.include]: Failed opening '.\file.inc.php' for
> inclusion (include_path='.;.\includes;.\pear') in
> C:\Inetpub\httpdocs\test.php on line 3

    If you're going to use Windows-style paths, try escaping your
slashes and see what happens.

<?php
include(".\\file.inc.php");
?>

-- 
</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