Login   Register  
PHP Classes
elePHPant
Icontem

File: example2.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  >  example2.php  >  Download  
File: example2.php
Role: Example script
Content type: text/plain
Description: class of example 2
Class: YouTube Downloader
Download videos from YouTube
Author: By
Last change:
Date: 5 years ago
Size: 338 bytes
 

Contents

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

    
$YouTube= new YoutubeDownloader;
    
# $YouTube->dir = "./video";  /var/www/localhost/htdocs/YouTube/video
    
    
$YouTube->download("http://www.youtube.com/watch?v=x3RiwbQbPkw&feature=related");
    
print_r($YouTube->getinfo());

          
// http://php.net/manual/en/function.curl-getinfo.php

?>