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
neophyte
DevNet Resident
Posts: 1537 Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota
Post
by neophyte » Tue Mar 28, 2006 4:28 pm
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
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Tue Mar 28, 2006 4:39 pm
maybe it doesn't like how you're specifying the path? Could always use a given starting location like $_SERVER['DOCUMENT_ROOT']
neophyte
DevNet Resident
Posts: 1537 Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota
Post
by neophyte » Tue Mar 28, 2006 4:54 pm
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.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Tue Mar 28, 2006 4:58 pm
the include path can be changed at will using
set_include_path()
neophyte
DevNet Resident
Posts: 1537 Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota
Post
by neophyte » Tue Mar 28, 2006 5:15 pm
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!