--- Dennis Gearon <[EMAIL PROTECTED]> 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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to