Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 1ed8dd31 authored by NINASSI Benjamin's avatar NINASSI Benjamin
Browse files

.

parent 99f3c372
No related branches found
No related tags found
No related merge requests found
......@@ -100,17 +100,17 @@ class VerifyStructuresLogoCommand extends ContainerAwareCommand
}
private function is_url_exist($url){
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_exec($ch);
$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$ch = \curl_init($url);
\curl_setopt($ch, CURLOPT_NOBODY, true);
\curl_exec($ch);
$code = \curl_getinfo($ch, CURLINFO_HTTP_CODE);
if($code == 200){
$status = true;
}else{
$status = false;
}
curl_close($ch);
\curl_close($ch);
return $status;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment