Re: some html basics please

From: Date: Sat, 30 Aug 2003 16:44:42 +0000
Subject: Re: some html basics please
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-161255@lists.php.net to get a copy of this message
--- Dennis Gearon <gearond@fireserve.net> wrote: > It seems that HTML is LAME, LAME,LAME when it comes to determining > local directories. I think you just need to understand how filesystems work and what a URL is. ../ is the parent directory ./ is the current directory / is the root directory If you reference /image.png from a page found at http://example.org/foo/bar.php, the browser will request the resource at http://example.org/image.png. If you reference ./image.png or even just image.png in that page, the browser will request http://example.org/foo/image.png. Just remember that the browser is the one interpreting the path and requesting the URL, which is why / references document root and not the root directory of the filesystem. Hope that helps. Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/

« previous php.general (#161255) next »