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...
https://iskablogs.blogspot.com/2014/03/tutorial-check-if-website-is-available.html
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)
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)