RE: [PHP-WIN] Win2K/PHP4.0.4pl1 - include_path mess (won't include from the current directory)
| From: | PHPBeginner.com | Date: | Thu, 01 Feb 2001 15:19:11 +0000 |
| Subject: | RE: [PHP-WIN] Win2K/PHP4.0.4pl1 - include_path mess (won't include from the current directory) | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-5307@lists.php.net to get a copy of this message | ||
Thanks Doug!
You have just fixed it for me!
I've tried it before (since I know how to do it on Linux) except that I
haven't close the path with a backslash. At that point I though it won't
work the way on Linux does.
Thanks a bunch,
I appreciate your help.
Cheers,
Maxim Maletsky
www.PHPBeginner.com
-----Original Message-----
From: Doug Brewer [mailto:dbrewer@insightpd.com]
Sent: Thursday, February 01, 2001 10:19 PM
To: php-windows@lists.php.net
Subject: RE: [PHP-WIN] Win2K/PHP4.0.4pl1 - include_path mess (won't
include from the current directory)
include_path = ".;e:\apache\lib\php\;"
use a semi-colon to separate paths
DB
| -----Original Message-----
| From: PHPBeginner.com [mailto:php-general@phpbeginner.com]
| Sent: Thursday, February 01, 2001 2:54 AM
| To: PHPLIB; php-windows@lists.php.net; PHP
| Subject: [PHP-WIN] Win2K/PHP4.0.4pl1 - include_path mess
| (won't include
| from the current directory)
|
|
| 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
|
|
|
| --
| PHP Windows Mailing List (http://www.php.net/)
| To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
| For additional commands, e-mail: php-windows-help@lists.php.net
| To contact the list administrators, e-mail:
| php-list-admin@lists.php.net
|
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
For additional commands, e-mail: php-windows-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net