Re: [PHP] some html basics please
Chris Shiflett wrote: ../ is the parent directory ./ is the current directory / is the root directory I knew that ./ was the current directory on a *nix system, but a browser will respect that also? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] some html basics please
--- 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
Re: [PHP] some html basics please
Dennis Gearon wrote: h, php outputs to the browser, hmmm, browser reads HTML hm,maybe somepeople who program in PHP have to dabble in HTML Never said they don't, but the HTML PHP outputs has nothing to do with PHP. Take this to an HTML list/newsgroup. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] some html basics please
Dennis Gearon wrote: It seems that HTML is LAME, LAME,LAME when it comes to determining local directories. This is a PHP list, not an HTML list. What does this have to do with PHP? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] some html basics please
It seems that HTML is LAME, LAME,LAME when it comes to determining local directories. I would like to somehow: put image links relative to a base directory (if a relative URI is given) and have PAGE links relative to the current page (if a relative URI is given) What I seem to be able to do instead, is to: with NO in the header hard code the location of the images use relative URI for pages -OR- with NO in the header use relative location of the images hard code the URI for pages there seems no way to tell the browser to look below the base of the site for relative URI for images, but do local to the current file relative for other pages. And doing '"/someURI" makes the browser go off the site and not the base. GR. I can either get my images from a particular place on my site by hardcoding the exact UR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php