Re: Full versus relative URLs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Johnny wrote:


Hi Thodoris,

In my opinion, the best use is to include your file with relative urls, like :
<img src="/path/to/img.jpg" />

I believe that it best.
Including the hostname use to cause a dns lookup in some browsers which made it slower but I don't believe that is the case anymore.

Doing the full path relative to document root though means it does not break when you move the page in your hierarchy.

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux