> 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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to