Results 1 to 7 of 7
Threaded View
-
28th Nov 2011, 06:07 AM #1OPBannedWebsite's:
Seecure.me[PHP] Download YouTube FLV or MP4 or HD this is Working as of 28-11-2011 and has been
[PHP] Download YouTube FLV or MP4 or HD this is Working as of 28-11-2011 and has been updated
Credits to JmZ for posting a tutorial a few days back which helped me! THANKS BRO!
Code:<?php error_reporting(0); /********************************************************* * * * Author: Vick@PHPCanyon.net * * Site : www.PHPCanyon.net * * Date : 28/11/2011 * * Notes : This doesn't just download MP4, It Downloads * * either mp4, flv, which ever is better. * * * * How to use? * * YouTubeToMP4("videoidhere"); * * ^ Outputs Direct Link to Download. * * * * BE AWARE YOUTUBE MIGHT * * BAN/BLOCK YOUR IP IF YOU * * MISS-USE/MASS USE THIS SCRIPT * * THIS SCRIPT COMES "AS-IS" AND * * YOU ARE RESPONSIBLE FOR YOUR * * OWN ACTIONS AND HOW-EVER YOU * * USE THIS SCRIPT, IF YOU DISAGREE * * THEN CLOSE THIS TEXT EDITOR RIGHT * * NOW AND DELETE THIS SCRIPT ! * * * * FAQ * * 1. I can Only see "&title="? * * -> Your Banned GG. * * * **********************************************************/ function YouTubeToMP4($videoid) { // Pass VideoID into $url to create Video URL to Watch $url = "http://www.youtube.com/watch?v=$videoid"; // Get Page Contents and put in Variable $pageSource = file_get_contents($url); /* Using Regex we need to grab 2 required params to generate a download link */ // Get Snippet $snippet = '/img.src = "(.+?)";/'; preg_match($snippet, $pageSource, $match_snippet); $rawSource = urldecode($match_snippet[1]); // Get TITLE $title_snippet = '/meta name="title" content="(.+?)">/'; preg_match($title_snippet, $pageSource, $match_title_snippet); $title = $match_title_snippet[1]; // Remove spaces and add '%20', theres better ways but // this felt easier at the time. $removeSpaces = " "; $add = "%20"; $newTitle = str_replace($removeSpaces, $add, $title); // Remove '\' $removeThis = '\\'; $result = str_replace($removeThis, "", $rawSource); $newURL = $result . "&title=$newTitle"; // Remove 'u0026' and replace with '&' $andRemoveThis = 'u0026'; $result_ = str_replace($andRemoveThis, "&", $newURL); // Replace link with watch link $Laps = "generate_204?"; $rounds = "videoplayback?"; $circuit = str_replace($Laps, $rounds, $result_); echo $circuit; } // Call this function with "videoidhere" YouTubeToMP4("ooZwmeUfuX"); ?>
_Vick Reviewed by _Vick on . [PHP] Download YouTube FLV or MP4 or HD this is Working as of 28-11-2011 and has been Download YouTube FLV or MP4 or HD this is Working as of 28-11-2011 and has been updated Credits to JmZ for posting a tutorial a few days back which helped me! THANKS BRO! <?php error_reporting(0); /********************************************************* * * * Author: Vick@PHPCanyon.net * Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Google PageRank API - v2 - Verified Working on 4/11/2011
By _Vick in forum Web Development AreaReplies: 9Last Post: 11th Nov 2011, 02:29 AM -
View2.be | Increase YouTube Video Views FAST* | 100% working
By bmatthews in forum Useful SitesReplies: 0Last Post: 4th Jun 2011, 08:15 PM -
Vagex - Increase your Youtube Views Without Video Freeze 100% Working
By cullyxp in forum General DiscussionReplies: 2Last Post: 12th May 2011, 12:45 AM -
[Other] Rapidleech with working youtube plugin
By Daniel in forum ArchiveReplies: 2Last Post: 30th Apr 2011, 09:22 AM -
Need working youtube upload plugin
By Cactus in forum Technical Help Desk SupportReplies: 0Last Post: 26th Jul 2010, 04:52 AM
themaLeecher - leech and manage...
Version 5.04 released. Open older version (or...