CodeIgniter Forums

Full Version: upload video to youtube remotely using codeigniter
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Unknown[/eluser]
Hi, I need the functionality of uploading videos to youtube using codeigniter, could anyone tell me how to do that ?

Thanks for your help

El Forum

[eluser]NeoArc[/eluser]
Try installing Zend Gdata

http://code.google.com/apis/youtube/2.0/...e_php.html

El Forum

[eluser]Unknown[/eluser]
[quote author="NeoArc" date="1313798228"]Try installing Zend Gdata

http://code.google.com/apis/youtube/2.0/...e_php.html[/quote]


Isn't there a library for codeigniter? I mean youtube-codeigniter library..

El Forum

[eluser]NeoArc[/eluser]
You can try setting up your include path, and then calling Gdata clases from inside the controller

Copy the Zend Directory inside your library directory

Code:
set_include_path(get_include_path().PATH_SEPARATOR.FCPATH.'/application/libraries');

require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata_YouTube');
$yt = new Zend_Gdata_YouTube();

BTW, this code is not complete/validated, keep trying.