protected function getUrlStatus($url)
    {
        if($this->isValidUrl($url)) {
            ini_set('allow_url_fopen', 1);
            $url = @get_headers($url, 1);
            if($url) {
                $status = explode(' ',$url[0]);
                return (int) $status[1];
            }
        }
        else {
            return 404;
        }
    }
protected function getUrlStatus($url)
    {
        if($this->isValidUrl($url)) {
            ini_set('allow_url_fopen', 1);
            $url = @get_headers($url, 1);
            if($url) {
                $status = explode(' ',$url[0]);
                return (int) $status[1];
            }
        }
        else {
            return 404;
        }
    }
protected function getUrlStatus ( $ url ) { if ( $ this -> isValidUrl ( $ url ) ) { ini_set ( 'allow_url_fopen' , 1 ) ; $ url = @ get_headers ( $ url , 1 ) ; if ( $ url ) { $ status = explode ( ' ' , $ url [ 0 ] ) ; return ( int ) $ status [ 1 ] ; } } else { return 404 ; } }
Returns the header status of the URL
@param string $url
Returns the header status of the URL