I am trying to get the PHP API to work, but I keep getting this error:

Fatal error: Uncaught exception 'Zend_Exception' with message 'File
"Calendar.php" was not found' in /home/custom/public_html/calendar/
Zend/Loader.php:155 Stack trace: #0 /home/custom/public_html/calendar/
Zend/Loader.php(87): Zend_Loader::loadFile('Calendar.php', Array,
true) #1 /home/custom/public_html/calendar/test.php(11):
Zend_Loader::loadClass('Zend_Gdata_Cale...') #2 {main} thrown in /home/
custom/public_html/calendar/Zend/Loader.php on line 155

Looking through all the files in the API download, I do not see a file
named Calendar.php anywhere in the downloaded files.

Here is my sourcecode.  Someone please help.   THanks

<?php
// includes the Zend Framework library and loads the necessary classes
$D = DIRECTORY_SEPARATOR;
set_include_path(
    dirname(__FILE__) . "{$D}..{$D}..{$D}..{$D}library"
    . PATH_SEPARATOR . get_include_path());
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata');
Zend_Loader::loadClass('Zend_Gdata_AuthSub');
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
Zend_Loader::loadClass('Zend_Gdata_Calendar');
Zend_Loader::loadClass('Zend_Feed_EntryAtom');
Zend_Loader::loadClass('Zend_Http_Client');


// Enter your Google account credentials
$email = '[EMAIL PROTECTED]';
$passwd = xxxxxxxxxxxx';
$client = Zend_Gdata_ClientLogin::getHttpClient($email, $passwd,
'cl');

$cal = new Zend_Gdata_Calendar($client);

function outputCalendarList($client)
{
  $gdataCal = new Zend_Gdata_Calendar($client);
  $calFeed = $gdataCal->getCalendarListFeed();
  echo '<h1>' . $calFeed->title() . '</h1>';
  echo '<ul>';
  foreach ($calFeed as $calendar) {
    echo '<li>' . $calendar->title() . '</li>';
  }
  echo '</ul>';
}


outputCalendarList();

?>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" 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/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to