John,
Probably the curl library would be a LOT easier to work with. There's
probably an example of what you are talking about in the documentation
at php.net. Even shelling out to the curl binary would be easier than
re-writing the http protocol to see if sites are up.
Jason
John Ryan wrote:
What PHP code would I use to check if submitted sites to my directory
actually exist?? I want to use something that can return the server
code to me, ie HTTP 300 OK, or whatever. Can I do this with sockets??