Using netbeans 6.91 and Zend_gdata_youtube class

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
kc11
Forum Commoner
Posts: 73
Joined: Mon Sep 27, 2010 3:26 pm

Using netbeans 6.91 and Zend_gdata_youtube class

Post by kc11 »

Hi ,

I'm a new programmer . I want to access youtube videos via the Zend_gdata_youtube class. I am developing using wampserver 2.01 and netbeans 6.91.

Code: Select all

  <?php
     
        $yt = new Zend_Gdata_YouTube();

      $query = $yt->newVideoQuery();


      $query->category = 'Comedy/dog';



      echo $query->queryUrl . "\n";

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

I was getting the following error:

Warning:

require(gdata/youtube.php) [function.require]: failed to open stream: No such file or directory in C:\wamp\www\PhpProject1\index.php on line 10

Fatal error: require() [function.require]: Failed opening required 'gdata/youtube.php' (include_path='.;C:\wamp\bin\php\includes;C:\wamp\www\ZendGdata-1.10.8\library') in C:\wamp\www\PhpProject1\index.php on line 10

after changing the php.ini file include line to

; Windows: "\path1;\path2"
include_path = ".;C:\wamp\bin\php\includes;C:\wamp\www\ZendGdata-1.10.8\library

( I got this from http://framework.zend.com/manual/en/lea ... intro.html )

I am getting the following error now:

Fatal error: Class 'Zend_Gdata_YouTube' not found in C:\wamp\www\PhpProject1\index.php on line 11

Does this make any sense to anyone? I think this just boils down to getting the right include path, but its not clear to me how to figure this out

Thanks in advance,

KC
Post Reply