src/MalScraper/Model/MainModel.php
public static function getHeader($url)
    {
        $file_headers = @get_headers($url);
        if (empty($file_headers) || $file_headers[0] == 'HTTP/1.1 404 Not Found') {
            return 404;
        }

        if (empty($file_headers) || $file_headers[0] == 'HTTP/1.1 403 Forbidden') {
            return 403;
        }

        return 200;
    }
public static function getHeader($url)
    {
        $file_headers = @get_headers($url);
        if (empty($file_headers) || $file_headers[0] == 'HTTP/1.1 404 Not Found') {
            return 404;
        }

        if (empty($file_headers) || $file_headers[0] == 'HTTP/1.1 403 Forbidden') {
            return 403;
        }

        return 200;
    }
public static function getHeader ( $ url ) { $ file_headers = @ get_headers ( $ url ) ; if ( empty ( $ file_headers ) || $ file_headers [ 0 ] == 'HTTP/1.1 404 Not Found' ) { return 404 ; } if ( empty ( $ file_headers ) || $ file_headers [ 0 ] == 'HTTP/1.1 403 Forbidden' ) { return 403 ; } return 200 ; }
Get URL header.

@param string $url URL of full MyAnimeList page

@return int
Get URL header .