Note that there are some explanatory texts on larger screens.

plurals
  1. POAccessing youtube services from php
    primarykey
    data
    text
    <p>I am completely new to php. I am trying to build a system to upload videos to youtube and preserve their URL. Another flash application later combines them. I am clearing the target so that i can be assured that the library can perform these tasks.</p> <p>1) upload on a default channel 2) get video url 3) download video for offline viewing</p> <p>I found the zend library which is used with php by googling. But facing a lot problem. I am using WAMP. I copied the zend library folder to "C:\wamp\www\zend" and changed the php.ini here</p> <p>; Windows: "\path1;\path2" include_path = ".;C:\wamp\www\zend\library;c:\php\includes"</p> <p>feeling no change. So I am trying to test the library with this code.</p> <pre><code>&lt;?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-&gt;setMajorProtocolVersion(2); $videoFeed = $yt-&gt;getVideoFeed(Zend_Gdata_YouTube::VIDEO_URI); printVideoFeed($videoFeed); var_dump($videoFeed); ?&gt; </code></pre> <p>THe error i currently see is</p> <p>1 0.0023 375392 {main}( ) ..\testphp.php:0</p> <p>2 0.0086 560192 require_once( 'C:\wamp\www\zend\library\Zend\Gdata\YouTube.php' ) ..\testphp.php:7</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload