Tutorial Check if Website is Available

Performs a cURL-Request to check, if a website exists / is online Technique #1 if (isDomainAvailible('http://www.css-tricks.com&#...

Performs a cURL-Request to check, if a website exists / is online
Technique #1

if (isDomainAvailible('http://www.css-tricks.com'))
{
echo "Up and running!";
}
else
{
echo "Woops, nothing found there.";
}

//returns true, if domain is availible, false if not
function isDomainAvailible($domain)

Hot in Week

Popular

Archive

item