Re: site root variable (for Generic Unix and Windows)

From: Date: Mon, 19 Mar 2001 17:17:10 +0000
Subject: Re: site root variable (for Generic Unix and Windows)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-44597@lists.php.net to get a copy of this message
Hi, Matt Williams wrote: > you could make your links absolute > ie.. > > /cat.html Properly speaking, even this link is relative :-) (it is relative to the document root of the web server). I like to call such links "impure relative" links :-). I call links of the type "../cat.html" "pure relative" links ;-) This type of a link will only work if you're always going to have your pages served up by a web server (which may be true in your case). I had wanted to do something similar as far as specifying the path was concerned. However, in my case, I had to mirror the site on my hard disk and then work on that too. Therefore, such "impure" relative links would not have worked for me. I needed to have "pure" relative links so that the whole structure of the site would hold together even when viewed off the hard disk. A look at the mail (and the answer to it) titled "Finding the depth" in this list might prove helpful. -- Regards, Harshdeep Singh Jawanda.

« previous php.general (#44597) next »