$url, CURLOPT_HEADER => 0, CURLOPT_RETURNTRANSFER => TRUE, CURLOPT_TIMEOUT => 4 ); //create a new cURL resource $ch = curl_init(); curl_setopt_array($ch, $defaults); // grab URL and pass it to the browser $result = curl_exec($ch); // close cURL resource, and free up system resources curl_close($ch); if($result) { echo Display::return_icon('accept.png', get_lang('Ok')); } else { echo Display::return_icon('wrong.gif', get_lang('Wrong')); } } break; default: echo ''; } exit;