PHP script to check the availability of a list of URLS