PHP Classes
elePHPant
Icontem

File: example3.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of evolution  >  YouTube Downloader  >  example3.php  >  Download  
File: example3.php
Role: Example script
Content type: text/plain
Description: class of example 3
Class: YouTube Downloader
Download videos from YouTube
Author: By
Last change: yanlış link eklenmiş =)
Date: 6 years ago
Size: 832 bytes
 

Contents

Class file image Download
<?php
   
include ("__class.youtubedownloader.php");

   
$YouTube= new YoutubeDownloader;
   
$url = array("http://www.youtube.com/watch?v=p8d1kIn4nl0",
            
"http://www.youtube.com/watch?v=t-fWp8XrX4w&feature=bz303",
            
"http://www.youtube.com/watch?v=wuSeVAWpniM&feature=related",
            
"http://www.youtube.com/watch?v=x3RiwbQbPkw&feature=related"
           
);
   
$YouTube->download($url);
   
   
$inf = $YouTube->getinfo();
   
//http://www.youtube.com/watch?v=p8d1kIn4nl0
   
echo "[1] video <br> URL: ". $inf[0][url]."<br> download speed :". $inf[0][speed_download]."<br> size :". $inf[0][size_download]."<br><br><br>";
   
//http://www.youtube.com/watch?v=t-fWp8XrX4w&feature=bz303
   
echo "[2] video <br> URL: ". $inf[1][url]."<br> download speed :". $inf[1][speed_download]."<br> size :". $inf[1][size_download]."";
//HF =)
?>