I want to check whether a website is up or down at a particular instance using PHP. I came to know that curl will fetch the contents of the file but I don\'t want to read th
curl -Is $url | grep HTTP | cut -d ' ' -f2