Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Base Path in Windows Server 2003 IIS

Status
Not open for further replies.

Mirage86

Technical User
Joined
Dec 16, 2005
Messages
5
Location
US
Ok i have a server running Windows Server 2003 Standard Edition. The last server we had used linux and Apache which supports the /home/usr/blah/blah ok what my question is...is what is the base path on a windows server, how can i use the base path on a webpage on a windows server. I have no experience using windows as a server. Also we had some issues with the not working.

Our server is
running Windows Server 2003 Standard
with IIS and Plesk.


i am working with PHP....
$config['baseurl'] = '// The actual location of openlistings on the machine -- leave off the trailing slash
-----> $config['basepath'] = '/home/xfactor-/public_html/v2/'; <-------This is the part i need the information about for use with windows

This is the actual code....anyways hope this helps
 
i think you can get to this information a number of ways.

examine the $_SERVER variable. i think the $_SERVER[ORIG_PATH_TRANSLATED] might be what you are looking for. or a combination of DOCUMENT_ROOT and (REQUEST_URI) or (URL)

Code:
echo "<pre>";
print_r($_SERVER);
echo "</pre>";
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top