Re: Win2K/PHP4.0.4pl1 - include_path mess (won't include from the current directory)

From: Date: Sun, 04 Feb 2001 02:16:31 +0000
Subject: Re: Win2K/PHP4.0.4pl1 - include_path mess (won't include from the current directory)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38048@lists.php.net to get a copy of this message
> in my PHP.ini (which stays under c:\WINNT) I have > > include_path = "P:\includes; " ; UNIX: "/path1:/path2" > Windows: "\path1;\path2" > doc_root = ; the root of the php pages, used only if nonempty > > under "P:\includes" are PHPLIB and some few scripts that I need to > auto_prepend under all the roots on my local server. > > PHPLIB is being included properly, but, if I try to include a file within a > current directory like: > > include ("header.inc"); > > I get the following error: > > Warning: Failed opening 'header.inc' for inclusion > (include_path='P:\includes; ') in p:\phpbeginner\index.html on line 17 > > (NOTE: include ("$DOCUMENT_ROOT/header.inc"); will work perfectly ) > > I know that on Linux to fix the problem would be enough to add something > like this into PHP.INI > > include_path = ".: /full/path/to/includes: " ; UNIX: > "/path1:/path2" Windows: "\path1;\path2" > > How do I do this under Win2K ? Same thing, only use ; as separator, not : include_path = "./;P:/includes"; Windows uses ./ and .. the same way Un*x does. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#38048) next »