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!

how to get absolute path

Status
Not open for further replies.

786snow

Programmer
Nov 12, 2006
75
Hi, I have directory structure lke


home
->-> John
->->->-> Projects
->->->->->->->sites
->->->->->->->->->Html

If I want to know what is the absulute path of the folder sites, canI find that out? in this directory everything remains the same but "John" can be different for different ppl depending on their first name
 
If your script runs in the Html folder and you need to know the structure above that, then one of the variables in the $_SERVER array will help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top