![]() |
Webmaster
Workshop The Beginner's Guides Section |
|
Front Page Forums Contact Us Terms of Use How To Guides Resource Center |
|
|
|
|
|
GUIDES
GENERAL Choosing a Host Hosting Terminology Protection of contents
SCRIPTING Beginners Guide to Telnet Basic UNIX Commands CHMOD and setting permissions Guide Basic guide to CRONTAB Basic Guide to Paths |
Path's Url's Uri's and all that |
| Here we set out those confusing
terms encountered when installing scripts. What do all those terms mean such
as put the full path here and here you need the relative path.
Let us start off by looking at what you are all familiar with a URL http://www.webmasterworkshop.com By entering this in your browser as you are well aware would take you to this site's front page. This is known as a URL
(Uniform Resource Locator ) Firstly let us look how this is made up. The Protocol is the http:
part other common protocols that you have come across are mailto: The Alias www. The Domain Name webmasterworkshop.com (note the domain name does not start with www.) after the domain name you get either the file name or
the path to a filename. If no file name is stipulated it is normally set by
your server to default to index.html or index.htm. A more complex url could look like this So onto PATHS A path is the directory structure separated by the
" / " character (forward slash). So the path to
test.html from
the home directory in the example above would be /search/area/test.html. BUT GUESS WHAT /search/area/test.html is also known as a URI (Uniform resource indicator) AND EVEN BETTER /search/area/test.html is also known as a RELATIVE URL or RELATIVE PATH So the relative path often asked for in scripts would be the part after the domain name to find that file or directory. couple more examples http://www.mydomain.com the relative path would be / http://www.mydomain.com/cgi-bin/here the relative path to the directory here would be /cgi-bin/here http://www.mydomain.com/cgi-bin/here/page.html the relative path to the file page.html here would be /cgi-bin/here WHAT NO FILE NAME ??? That is right as the script is asking where a file resides on your server it already knows which file it is looking for it just wants to know where it can find it and in this case it would find it in the directory here. One further thing to note is the directory htdocs or public or www or whatever the directory is called where you put your public files is invisible on the system in respect of relative paths and finally the other paths commonly asked for by a script Please change this to the Full path or the Absolute path is another common setup request What they are normally requesting is Please enter the Full System Path to whatever directory When you open your computers " C " drive (or whatever your disk drive is labeled) you are presented with a list of directories and maybe files. This is the top level of your C drive and this is what is called your root of C drive or C drives root directory . On a server your domain's home directory is a few directories below the
servers root directory. A typical path to the script test.cgi in the search directory of your cgi-bin could look something like this /usr/local/apache/www/username/cgi-bin/search Note yet once again the path starts with a " / " and ends without one. If you wanted the the full path to your sites front page on the above system it would look like this /usr/local/apache/www/username/htdocs Note this time the htdocs or whatever the directory name where you put your sites public pages is included. This full path tells the script where it is exactly located on the server so it can reference all other directories and files in relation to itself. To summarize Relative Path is normally the path after your domain name to find a file The Full URL to this page is the full URL starting with http:// The Full System Path is the path to the
file from the server's root directory also known as Remember the htdocs or whatever it is called only appears in a Full Path
|
|
This
site design and content is © Copyright 2000-2005 by |