I have been trying for quite a while to check if submitted links are valid film-clips from youtube.com or vimeo.com but I didn\'t succeed.
Any ideas how to check ur
/*
* Verify YouTube video status
*/
$videoID = "o8UCI7r1Aqw";
$header = get_headers("http://gdata.youtube.com/feeds/api/videos/". $videoID);
switch($headers[0]) {
case '200':
// video valid
break;
case '403':
// private video
break;
case '404':
// video not found
break;
default:
// nothing above
break;
}