Good afternoon,

I am using the Zend Framework Gdata Calendar for retrieving a list of all 
myGoogle calendars, 
but unfortunately I'm having. I am using the follwing PHP code:

 

<?php

header('Content-Type: text/html; charset=utf-8'); 

$path = 'ZendGdata/library';

// Append the library path to existing paths

$oldPath = set_include_path(get_include_path() . PATH_SEPARATOR . $path);

 

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_Gdata_AuthSub');

 

 

$service = new Zend_Gdata_Calendar();

 
// Parameters for ClientAuth authentication 

$service = Zend_Gdata_Calendar::AUTH_SERVICE_NAME;

$user = "[email protected]";

$pass = "MY_PASSWORD";

    

                

try{

           // Create an authenticated HTTP client

           $client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, 
$service);

            } catch (Exception $e){

                      /*echo 'Caught exception: ',  $e->getMessage(), 
"\n";*/

            }

         

    // Create an instance of the Calendar service

    $service = new Zend_Gdata_Calendar($client);

 

   try {

        $listFeed= $service->getCalendarListFeed();

    } catch (Zend_Gdata_App_Exception $e) {

        echo "Error: " . $e->getMessage();

    }

 

                echo "<h1>Calendar List Feed</h1>";

    echo "<ul>";

    foreach ($listFeed as $calendar) {

        echo "<li>" . $calendar->title;

    }

    echo "</ul>";

 

 

//

?>

 

To try to understand the origin of the problem i’ve hosted the same code in 
two different locations. In www.paroquiapsadriao.com/test.php the result, as 
you can see, is a timeout:

 

Error: Unable to Connect to ssl://www.google.com:443. Error #110: Connection 
timed out

*Warning*: Invalid argument supplied for foreach() in *
/home/paroqui2/public_html/test.php* on line *46*

 

 

Exactly the same code in http://web.ist.utl.pt/ist155465/Paroquia/test.phpruns 
smoothly
.

 I’m using, in both cases, the last version of Zend Gdata Framework 
(1.11.9).

Can you give me some clue of what should be the origin of the problem? Is a 
question related to the 1st hosting server?

 

Thank you!

-- 
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://code.google.com/apis/calendar/community/forum.html

Reply via email to