467,143 Members | 1,230 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,143 developers. It's quick & easy.

Checking if a site is available

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??
Jul 16 '05 #1
  • viewed: 3369
Share:
1 Reply
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??


Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

18 posts views Thread by Domestos | last post: by
5 posts views Thread by Tongu? Yumruk | last post: by
3 posts views Thread by Phil Lamey | last post: by
67 posts views Thread by Steven T. Hatton | last post: by
1 post views Thread by JS | last post: by
7 posts views Thread by pradeep_TP | last post: by
reply views Thread by lennart | last post: by
125 posts views Thread by jacob navia | last post: by
8 posts views Thread by MarkusJNZ@gmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.