This is a discussion on Checking if a site is available within the PHP Language forums, part of the PHP Programming Forums category; What PHP code would I use to check if submitted sites to my directory actually exist?? I want to use ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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?? |
![]() |
| Thread Tools | |
| Display Modes | |
|
|