On Mar 8, 2007, at 1:40 PM, Chris Shiflett wrote:
No, an absolute path is different than a relative path. It represents
the same path regardless of the location of the current resource.

Yeah... just to clarify further:

Absolute path:
http://www.example.org/css/main.css

Relative path that will start at whatever comes after your domain (i.e. it's still relative to the domain):
/css/main.css

Relative path that starts after the request uri:
css/main.css

I'm not positive on this... but I think an addition advantage of relative urls (in addition to not needing to know the domain) is that the browser will reuse the same http connection. Can anyone verify that off the top of their head?

-Rob _______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to