OZONE Asylum
FAQ
What's a relative and an absolute path?
This page's ID:
5737
Search
QuickChanges
Forums
FAQ
Archives
Register
You are editing "What's a relative and an absolute path?"
Who can edit an FAQ?
Anyone registered may edit an FAQ.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Well, a relative path is relative to the current directory... say you're in /shu then 'sha' would be /shu/sha. An absolute path, which always starts with a / would be /sha. this is not /shu/sha, but /sha. Somewhere else enterly. Note: Absolute paths in urls are from the webroot. Absolute paths in cgi scripts (including perl and php) are from the webservers internal root. On most shared hosting, your webroot is deep down in something like /usr/customers/joeWebmaster/ [small][i](Added by: [url=http://www.ozoneasylum.com/cgi-bin/ubbmisc.cgi?action=getbio&UserName=Tyberius+Prime]Tyberius Prime [/url] on Fri 20-Jun-2003)[/i][/small] Btw, some claim that using absolute paths for urls is slower than relative ones, because the browser supposedly creates a new connection each time he encounters an absolute path. I'd take this info with a grain of salt, because in http 1.0, each request creates a new connection, anyway, and with http 1.1, I'd believe browsers to be smart enough to handle this correctly (ie. by not opening a new connection to the same server). [small][i](Edited by: [url=http://www.ozoneasylum.com/cgi-bin/ubbmisc.cgi?action=getbio&UserName=Tyberius+Prime]Tyberius Prime [/url] on Fri 20-Jun-2003)[/i][/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »