Login   Register  
PHP Classes
elePHPant
Icontem

File: megavideo.example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Aziz S. Hussain  >  Megavideo Premium Link Generator  >  megavideo.example.php  >  Download  
File: megavideo.example.php
Role: Example script
Content type: text/plain
Description: Implementation Example
Class: Megavideo Premium Link Generator
Retrieve URLs of video streams of Megavideo.com
Author: By
Last change: Added include file.
Date: 2010-08-27 10:56
Size: 662 bytes
 

Contents

Class file image Download
<?php
/*
MegaVideo Video Scraper
Premium Account Required
Written by Aziz S. Hussain
@
www.AzizSaleh.com
Produced under LGPL license
@
http://www.gnu.org/licenses/lgpl.html

Example Use of the class: megavideo.class.php
*/

# Include Main Class
require_once('megavideo.class.php');

# Setup the URL
$newVideo = new megaVideo('http://www.megavideo.com/?v=6PTHEVUY');
# Work to get the link
$newVideo->doScrape();
# You now have the link
echo $newVideo->getLink();
# The link can be used for download or stream
# To use for stream, you will need a flash player like JW Flash Player
# http://www.longtailvideo.com/players/jw-flv-player/
?>