function url_exists($url)
{
$ch = curl_init($url);
curl_setopt ($ ch, CURLOPT_HEADER, true);
curl_setopt ($ ch, CURLOPT_POST, false);
curl_setopt ($ ch, CURLOPT_FAILONERROR, true);
curl_setopt ($ ch, CURLOPT_RETURNTRANSFER, true);
curl_exec ($ ch);
= $ CurlInfo curl_getinfo ($ ch, CURLINFO_HTTP_CODE);
curl_close ($ ch);
if ($ curlInfo! = 200 & & $ curlInfo! = 302 & & $ curlInfo! = 304)
(
return false;
)
anders
(
return true;
)
)
Gerelateerde berichten:
- Is.gd korte url dit voorbeeld laat zien hoe met behulp krijgt een korte url ...
Betrokken posten wordt u aangeboden door Yet Another Related Posts Plugin .
