I spent most of the day debugging and reconfiguring my server.
As a result I learned it was never a server issue. I did not get any
errors in the logs.
I also learned that the script had been working all along.
The reason it did not display was because the function
"outputCalendar()" needed to be called.
It all displayed once I added "outputCalendar($client);" to the end of
the script just before the closing "?>" tag.
I hope this helps others as this was very frustrating.
Thank you all for looking.
On Nov 12, 10:35 am, heccarrillo <[EMAIL PROTECTED]> wrote:
> I have the following installed on my box running Ubuntu "Edgy":
>
> PHP 5.1.6 (cli) (built: Jul 17 2007 17:52:03)
> Copyright (c) 1997-2006 The PHP Group
> Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
>
> I have the Zend Gdata library installed in the same directory shown in
> the include_path.
>
> Here is the page I'm trying to render:
>
> <?php
> require_once 'Zend/Loader.php';
> Zend_Loader::loadClass('Zend_Gdata');
> Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
> Zend_Loader::loadClass('Zend_Gdata_Calendar');
> Zend_Loader::loadClass('Zend_Http_Client');
> // Parameters for ClientAuth authentication
> $service = Zend_Gdata_Calendar::AUTH_SERVICE_NAME; // predefined
> service name for calendar
> $user = '[EMAIL PROTECTED]';
> $pass = '*********';
>
> // Create an authenticated HTTP client
> $client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass,
> $service);
>
> // Create an instance of the Calendar service
> // $service = new Zend_Gdata_Calendar($client);
>
> function outputCalendarList($client)
> {
> $gdataCal = new Zend_Gdata_Calendar($client);
> $calFeed = $gdataCal->getCalendarListFeed();
> echo '<h1>' . $calFeed->title->text . '</h1>';
> echo '<ul>';
> foreach ($calFeed as $calendar) {
> echo '<li>' . $calendar->title->text . '</li>';
> }
> echo '</ul>';}
>
> ?>
>
> However, all I get are empty pages without anything not even simple
> html markup.
>
> Thank you in advance for your help.
>
> Regards,
>
> Hector
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---