Youtube HTTP 404, .
, . URL-.
, 200.
, PHP Curl URL-, , .
Curl :
$http_status = curl_getinfo( $handle, CURLINFO_HTTP_CODE );
You can save the last_checked timestamp with each URL in the database, and then run cronjob every N minutes to check a small number of URLs, and update the timestamps when you are done. Be sure to save the status code in the database.
Then you can deal with non 200 status codes as you like in your code when displaying the url.
source
share