Spacer
Spacer

NGCODERS.COM

[ NEXT GENERATION CODERS ]

Spacer


PHP Youtube video downloader script

I was searching for a simple script which would allow me to download videos from youtube using php. I did find some implementation but only one of them worked and it used Pear. So here is a simple script to help you download videos from youtube. Allows you to download restricted videos too by logging into youtube.

The script is a simple youtube class which uses CURL.

Sample usage of the youtube class -

include(’curl.php’);
include(’youtube.php’);

$tube = new youtube();

// Only required for restricted videos
// $tube->username = “userid”;
// $tube->password = “password”;

$download_link = $tube->get($_POST['url']);


4 Responses to “PHP Youtube video downloader script”  

  1. 1 aditya

    Getting the following Error

    Error locating download URL.

    Ragards
    Aditya

  2. 2 admin

    Its working fine.

  3. 3 Orbital

    Tested it.. works fine… thanks very much for the code :-)

  4. 4 kabigroup.com

    It’s working fine now

    Thanks NGCoders

Leave a Reply



About

You are currently browsing the NGCoders - Next Generation Coders weblog archives.

Categories

Subscribe