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!

Absolute Pathways

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have a cgi script within which I need to insert an absolute path pointing to a txt file. The server is Apache, running Linux as operating sysyem. Though the file structure is different on every server, what is generally the correct syntax for a pathway to the server root? Would it be something like: /home/usr/myname/ ??
 
Well, is it an absolute FILESYSTEM path or URL path?

I am assuming that your web root directory (where index.html or similar is) is located in /home/usr/myname/www
so if you want an absolute FILESYSTEM path, you are correct above... if it is an absolute URL path, then it would be just the /Data/file.txt

Hope that helps :)

-john
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top