I am completely new to php. I am trying to create a system to upload videos to YouTube and save their URLs. Another flash application later brings them together. I clean the target so that I can be sure that the library can perform these tasks.
1) download by default channel 2) get a video 3) download a video for offline viewing
I found the zend library that is used with php using googling. But before a big problem. I am using WAMP. I copied the zend library folder to the folder "C: \ wamp \ www \ zend" and changed php.ini here
; Windows: "\ path1; \ path2" include_path = ".; C: \ wamp \ www \ zend \ library; c: \ php \ includes"
feeling unchanged. Therefore, I am trying to test the library with this code.
<?php error_reporting(E_ALL); ini_set('display_errors', 1); set_include_path('C:/wamp/library/zend/library' . PATH_SEPARATOR . get_include_path()); require_once 'zend/library/Zend/Gdata/YouTube.php'; require_once 'zend/library/Zend/Gdata/ClientLogin.php'; require_once 'zend/library/Zend/Loader/Autoloader.php'; $autoloader = Zend_Loader_Autoloader::getInstance(); $authenticationURL= 'https://www.google.com/youtube/accounts/ClientLogin'; $httpClient = Zend_Gdata_ClientLogin::getHttpClient( $username = ' shabab.h.siddique@gmail.com ', $password = '***', $service = 'youtube', $client = null, $source = 'testphp', $loginToken = null, $loginCaptcha = null, $authenticationURL); $developerKey = 'AI3....w'; $applicationId = 'Student Collaborative Video System'; $clientId = 'Student Collaborative Video System'; $yt = new Zend_Gdata_YouTube($httpClient, $applicationId, $clientId, $developerKey); $yt->setMajorProtocolVersion(2); $videoFeed = $yt->getVideoFeed(Zend_Gdata_YouTube::VIDEO_URI); printVideoFeed($videoFeed); var_dump($videoFeed); ?>
I am currently seeing an error
1 0.0023 375392 {main} () .. \ testphp.php: 0
2 0.0086 560192 require_once ('C: \ wamp \ www \ zend \ library \ Zend \ Gdata \ YouTube.php') .. \ testphp.php: 7
source share