protected function getUrlSize($url)
    {
        $data = get_headers($url, true);
        if (isset($data['Content-Length']))
            return (int)$data['Content-Length'];
        return false;
    }
protected function getUrlSize($url)
    {
        $data = get_headers($url, true);
        if (isset($data['Content-Length']))
            return (int)$data['Content-Length'];
        return false;
    }
protected function getUrlSize ( $ url ) { $ data = get_headers ( $ url , true ) ; if ( isset ( $ data [ 'Content-Length' ] ) ) return ( int ) $ data [ 'Content-Length' ] ; return false ; }
Get Remote File Size

@param string $url remote address
@return int|boolean URL size in bytes or false
Get Remote File Size