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

From: Date: Thu, 01 Feb 2001 08:53:34 +0000
Subject: Win2K/PHP4.0.4pl1 - include_path mess (won't include from the current directory)
Groups: php.general php.windows 
Request: Send a blank email to php-general+get-37612@lists.php.net to get a copy of this message
Hello guys, I have the following problem: 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 ? Anyone had this problem before? Cheers, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) maxim@phpbeginner.com www.phpbeginner.com

« previous php.general (#37612) next »