How to (up/down)load videos from youtube with PHP
Friday, June 29th, 2007
I was surfing in the phpclasses and I’ve found this wonderful class. phpTube which gives you the possibility to download and upload videos to youtube from php with an easy API. For so many sites this class is very useful because it offers a great interactive service with the bigger Video Portal of the world.
<?php
include_once (“phptube.php”);
$tube = new PHPTube ();
$tube->download(“TWZ5j-SNVKs”,“demo.flv”);
$tube = new PHPTube (“username”,“password”);
$id = $tube->upload (“/path/to/videofile.3gp”,“PHPTube Demo”, “Demo PHP YouTube”, “…”, 10, “DE”);
?>
The entire class could be downlaoaded from here
You may also get benefits of free web hosting packages which are offered by some web hosts free of charges. The dedicated hosting service providers offer most reliable hosting plans along with the connectivity of dedicated servers, a potent one. The hosting plans of aplus hosting are well-liked by all potential customers due to valuable features, connecting a number of computers in the same network.
