I'm trying to replicate sites like http://www.downforeveryoneorjustme.com or http://doj.me. Any ideas about the coding?
Edit: could I also have some source code examples?
I'm trying to replicate sites like http://www.downforeveryoneorjustme.com or http://doj.me. Any ideas about the coding?
Edit: could I also have some source code examples?
You could use get_headers() and check to see if returned anything but 200 OK.
You could also try a HEAD request, but there is a small chance a server may respond differently than a GET.
You could try curl to see what response headers you get back from the specified url. Then go from there I guess.