Re: problems with includes after upgrade from 5.2.1 to 5.2.11

Pierre Joye <[email protected]>
Newsgroups gmane.comp.php.windows
Message-ID <[email protected]>
hi,

I don't see what could have caused this problem in 5.2.x. However it
is a bad idea to use absolute path without a drive letter. It should
be better to setup correctly your include_path and relies on it, or
prefix your include/require with a predefined path:

define('MYINC', 'e:/mysite/include/');
include MYINC . 'foo/test.php';

Cheers,
--
Pierre

On Wed, Sep 30, 2009 at 1:11 PM, Paul J. Smith <[email protected]> wrote:
> Hi,
>
> I just upgraded php and am using it with IIS / FastCgi.
>
> Now all my code 'includes' and 'requires' are failing as they don't have drive letters :(
>
> This does not see to happen if you run from the command line.
>
> My php files are all stored on drive e:
>
> Previously all my code just referenced full paths like /mysite/includes/test.php
>
> Now I find this does not work unless I use e:/mysite/includes/test.php
>
> Any way to fix this without having to change 1000's of lines of code!?
>
> Thanks,
>
> Paul
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.