Login   Register  
PHP Classes
elePHPant
Icontem

File: cli.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of De Rosa Luigi  >  Megavideo Downloader  >  cli.php  >  Download  
File: cli.php
Role: Example script
Content type: text/plain
Description: Example of an usage from command line
Class: Megavideo Downloader
Get download URL of video files of megavideo.com
Author: By
Last change:
Date: 5 years ago
Size: 430 bytes
 

Contents

Class file image Download
<?
if(!$argv[1]) die("Usage: $argv[0] URL OR ID\n");

include(
'megavideo.class.php');

    
$obj = new Megavideo($argv[1]);
    print 
"-- Megavideo Downloader by luruke --\n";
    print 
"URL download:..........{$obj->get(url)}\n";
    print 
"Title:.................{$obj->get(title)}\n";
    print 
"Duration:..............{$obj->get(duration)}m\n";
    print 
"Size:..................{$obj->get(size)}Mb\n";
    
    
//system("firefox ".$obj->get(url));
?>