Page 1 of 1

Relative Web Paths Under IIS 6

Posted: Tue Mar 28, 2006 4:28 pm
by neophyte
Does anybody know how to configure IIS to give PHP 5.x relative paths for includes? Because right not absolute paths give me no problems but any relative path and the files are not found. Any body else bump into this before?

Thanks

Posted: Tue Mar 28, 2006 4:39 pm
by feyd
maybe it doesn't like how you're specifying the path? Could always use a given starting location like $_SERVER['DOCUMENT_ROOT'] :)

Posted: Tue Mar 28, 2006 4:54 pm
by neophyte
Apparently it doesn't see the relative paths, I have no idea why....

So I fixed by:
include_path = "c:\php\includes;c:\Inetpub\wwwroot\"
In my php.ini file. I don't think there is a way around that. (Some one correct me if I'm wrong.

It's definitely not finding relative paths.

Posted: Tue Mar 28, 2006 4:58 pm
by feyd
the include path can be changed at will using set_include_path()

Posted: Tue Mar 28, 2006 5:15 pm
by neophyte
Thanks for the additional info. I've never had to use that function before but I can think of an instance or two when it might have been handy. Thanks again Feyd!