I have put the Zend folder in my webSite.
my code is this

 <?php

 //include ("../zend/index.php");
 include ("Zend/Gdata/YouTube.php");

$yt = new Zend_Gdata_YouTube();
$videoEntry = $yt->getFullVideoEntry('J5gCeWEGiQI');
echo "1";
        printVideoEntry($videoEntry);*/

$videoFeed = $yt->getVideoFeed($query);

 function getAndPrintVideoFeed($location =
Zend_Gdata_YouTube::VIDEO_URI)
{
  $yt = new Zend_Gdata_YouTube();
  // set the version to 2 to receive a version 2 feed of entries
  $yt->setMajorProtocolVersion(2);
  $videoFeed = $yt->getVideoFeed($location);
  printVideoFeed($videoFeed);
}

function printVideoFeed($videoFeed)
{
  $count = 1;
  foreach ($videoFeed as $videoEntry) {
    echo "Entry # " . $count . "\n";
    printVideoEntry($videoEntry);
    echo "\n";
    $count++;
  }
}

function printVideoEntry($videoEntry)
{
  // the videoEntry object contains many helper functions
  // that access the underlying mediaGroup object
  echo 'Video: ' . $videoEntry->getVideoTitle() . "\n";
  echo 'Video ID: ' . $videoEntry->getVideoId() . "\n";
  echo 'Updated: ' . $videoEntry->getUpdated() . "\n";
  echo 'Description: ' . $videoEntry->getVideoDescription() . "\n";
  echo 'Category: ' . $videoEntry->getVideoCategory() . "\n";
  echo 'Tags: ' . implode(", ", $videoEntry->getVideoTags()) . "\n";
  echo 'Watch page: ' . $videoEntry->getVideoWatchPageUrl() . "\n";
  echo 'Flash Player Url: ' . $videoEntry->getFlashPlayerUrl() . "\n";
  echo 'Duration: ' . $videoEntry->getVideoDuration() . "\n";
  echo 'View count: ' . $videoEntry->getVideoViewCount() . "\n";
  echo 'Rating: ' . $videoEntry->getVideoRatingInfo() . "\n";
  echo 'Geo Location: ' . $videoEntry->getVideoGeoLocation() . "\n";
  echo 'Recorded on: ' . $videoEntry->getVideoRecorded() . "\n";

  // see the paragraph above this function for more information on
the
  // 'mediaGroup' object. in the following code, we use the mediaGroup
  // object directly to retrieve its 'Mobile RSTP link' child
  foreach ($videoEntry->mediaGroup->content as $content) {
    if ($content->type === "video/3gpp") {
      echo 'Mobile RTSP link: ' . $content->url . "\n";
    }
  }

  echo "Thumbnails:\n";
  $videoThumbnails = $videoEntry->getVideoThumbnails();

  foreach($videoThumbnails as $videoThumbnail) {
    echo $videoThumbnail['time'] . ' - ' . $videoThumbnail['url'];
    echo ' height=' . $videoThumbnail['height'];
    echo ' width=' . $videoThumbnail['width'] . "\n";
  }
}


?>


and i'm taking this error:

"
Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with
message 'Unable to Connect to tcp://gdata.youtube.com:80. Error #13:
Permission denied' in /home/www/vasgrav.com/log/Zend/Gdata/App.php:679
Stack trace: #0 /home/www/vasgrav.com/log/Zend/Gdata.php(221):
Zend_Gdata_App->performHttpRequest('GET', 'http://gdata.yo...', Array,
NULL, NULL, NULL) #1 /home/www/vasgrav.com/log/Zend/Gdata/
App.php(862): Zend_Gdata->performHttpRequest('GET', 'http://
gdata.yo...', Array) #2 /home/www/vasgrav.com/log/Zend/Gdata/
App.php(755): Zend_Gdata_App->get('http://gdata.yo...', NULL) #3 /home/
www/vasgrav.com/log/Zend/Gdata/App.php(205): Zend_Gdata_App-
>importUrl('http://gdata.yo...', 'Zend_Gdata_YouT...', NULL) #4 /home/
www/vasgrav.com/log/Zend/Gdata.php(162): Zend_Gdata_App-
>getFeed('http://gdata.yo...', 'Zend_Gdata_YouT...') #5 /home/www/
vasgrav.com/log/Zend/Gdata/YouTube.php(263): Zend_Gdata-
>getFeed('http://gdata.yo...', 'Zend_Gdata_YouT...') #6 /home/www/
vasgrav.com/log/ytapi.php(24): Zend_Gdata_YouTube-
>getVideoFeed(Object( in /home/www/vasgrav.com/log/Zend/Gdata/App.php
on line 679    "

Anyone to HELP???????

-- 
You received this message because you are subscribed to the Google Groups 
"Google Health Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/googlehealthdevelopers?hl=en.

Reply via email to