Relative Web Paths Under IIS 6

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Relative Web Paths Under IIS 6

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

maybe it doesn't like how you're specifying the path? Could always use a given starting location like $_SERVER['DOCUMENT_ROOT'] :)
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

the include path can be changed at will using set_include_path()
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post 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!
Post Reply