I've searched our SO questions but found solutions are based on calling ping
command executed from using system
PHP function.
My web host server doesn't allow me to do that. What should I do?
Please help, Nam.
Update
I need to check from the server side
.
If by a valid URL you mean one which does not 404, then you could use
get_headers()
and look for404
in the first returned array element.Alternatively, you could look for
200
which would be a normal happy request :)try this: