was hoping the php manual might tell me the answer but it didn't.
does $_SERVER['HTTP_HOST'] always not include the 'http://' part of the address?
thanks.
| SitePoint Sponsor |





was hoping the php manual might tell me the answer but it didn't.
does $_SERVER['HTTP_HOST'] always not include the 'http://' part of the address?
thanks.
Yes it doesnt. beacuse HTTP_HOST reflects the HOST part of the HTTP request header (which doesn't incluce 'http://' in it).


the http:// is the protocol being used. Like mail:// or ftp:// or file://
HTTP_HOST refers to the host name.
RichTestani
-------------------------------
http://www.junkdepot.com
http://www.rareoopdvds.com | The Movie Poster Site





great, thanks.
Bookmarks