Multiple PHP includes paths

They have: 334 posts

Joined: Dec 1999

I've been going crazy trying to set up multiple include paths for PHP under Windows 98. The PHP docs say it's doable by entering the multiple paths in the include_path = line of the php3.ini file. The suggested syntax is:
include_path=.;c:\some\other\path

That will look for includes in both the current directory and the specified \some\other\path Sounds pretty simple, but I've been unable to get it to work. No matter how I structure that line, it won't look for includes beyond the 1st path mentioned.

So if the line is:
include_path=.;c:\some\other\path
it will find the includes in the same directory, but won't load them from the second path.

If the line is reversed to say:
include_path=c:\some\other\path;.;
it will load the includes from the \some\other\path, but ignore the ones located in the same directory.

Has anyone run into this before?

They have: 334 posts

Joined: Dec 1999

Well, that's the annoying part. If you look closer, you'll see that I am using the semi-colon ; between multiple paths, but it STILL won't work. I've tried it with Windows semi-colons and Unix colons, Windows back slashes and Unix forward slashes and with/without the drive letter specified and every combination thereof. No matter how I do it, the 2nd path in line gets ignored. Doing a <? phpinfo()?> check on it, the include path will always come back with only the first path in line. Oddly, what I use the Unix : to separate the paths, the phpinfo check does show all listed paths. But even though they do show up as valid paths according to phpinfo, under Windows they don't work since the : is used in place of the ; However, using the exact same line in the php3.ini file and changing all the : to ; while leaving the rest of the line unchanged results in it again truncating after the first path in line and never recognizing the 2nd.

I even dumped my old PHP 3.0.11 installation and replaced it with version 3.0.16 (the newest version of 3.x.x available for Windows) and it still hangs up after the 1st path.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.