>What I'd like to do is get some of the information found when you do a 
>telent on port 80 like this below..
>telnet www.hostname.com 80
>Trying www.hostname.com...
>Connected to.www.hostname.com
>Escape character is '^]'.
>HEAD / HTTP/1.0
>HTTP/1.1 200 OK
>Date: Thu, 29 Aug 2002 17:00:09 GMT
>Server: Apache/1.3.26 (Darwin) PHP/4.2.2
>Connection: close
>Content-Type: text/html
>Really what I'm trying to find is the server message (404, 200, etc.) on 
>a remote server from this line... 
>HTTP/1.1 200 OK
>Is there anyway to access this through php?

In the old days you'd have to do http://php.net/fsockopen  Now there's some
new-fangled function to do the header part for you... Can't remember the
name, but it's in the manual somewhere...

Probably with the "file" stuff.

Like Music?  http://l-i-e.com/artists.htm

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

Reply via email to