i create a website where people can put their URL address.
But, i don't know if that URL is live website or not. How can i check it with PHP? I think, it something like PING.

And how to check automatically that the site is adult content or not? Can i do that with PHP?