Is there a way in php to check if there is a valid internet connection. Something like pinging a site and check the response that comes back.
What I want to do is display a picture from the web but if the client doesnt have an internet connection I do not want the picuture place holder to show.