Check youtube video is still valid
Check youtube video is still valid using youtube's API Manytimes youtube user can decide to delete their video. So I would like to periodically run a script to check that the youtube video is still valid or not. Also, you can fine best video review apps for shopify and make better your Shopify theme. Suppose your Youtube url is : http://www.youtube.com/v/jc0rnCBCX2c So here your Youtube video Id is jc0rnCBCX2c $vid [video Id] posible format/sintax: 1. http://www.youtube.com/watch?v=[ID]&feature=…&… 2. http://www.youtube.com/watch?v=[ID] 3. www.youtube.com/watch?v=[ID] 4. youtube.com/watch?v=[ID] 5. http ://www.youtube.com/v/[ID] 6. www.youtube.com/v/[ID] 7. youtube.com/v/[ID] 8. [ID] 9. …. and any valid youtube video url [php]<?php function checkYoutubeId($id) { if (!$data = @file_get_contents("http://gdata.youtube.com/feeds/api/videos/".$id)) return false; if ($data == "Video not found") return false; return true; } ?> [/php] http://gdata.youtube.com/feeds/api/videos/jc0rnCBCX2c if it does not exist then you…