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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mapping relative path to absoulte path

Status
Not open for further replies.

kdshah

Programmer
Oct 15, 2002
8
US
Is there a way of converting a relative path (such as ../../mydir/ which lies under the document root) into an absolute path?

 
PHP will set the value of $_SERVER['DOCUMENT_ROOT'] to the directory of the current virtual web host. Combine that with $_SERVER['PHP_SELF']. ______________________________________________________________________
TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top