RE: Document root, preferred way to find it???

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

 



Leif Gregory <mailto:Leifg@xxxxxxxxxxxxxxx>
    on Tuesday, March 08, 2005 6:55 AM said:

> <link rel="stylesheet" type="text/css" title="Site CSS"
> href="/includes/site.css" /> 
> 
> and I've never placed a period at the beginning.
> 
> But you raise an interesting point. Is the server telling the browser
> where the doc root is, or is the browser just guessing by dumping
> everything after the domain name and using what's left as the doc
> root.

The browser is prepending the domain to the path of the css file.

It's the equivalent of:

http(s)://domain.com/includes/sites.css

The browser is looking for the file from the *WEB* root not the
filesystem root. (Forgive me if that is not the proper nomenclature.)
The browser is not doing anything special at all.



Chris.

-- 
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