Have you ever wondered how to check if some site you are following or were interested on is down or still active?
We are going to use the CURL library to check the status of the website. Then later we are going to plugin to a function so that it become usable.
Lets start by initialzing the CURL Library
$curlInit = curl_init($domain);
Set the required options