Hi,

I see that in your sample code you are using magic cookie auth
(private-[magic_cookie_str]).  If you are using magic cookie to
authenticate, you don't need to perform clientlogin, thus remove the need to
use SSL.  You can simply remove this line -

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

For more information on magic cookie auth -

http://code.google.com/apis/calendar/developers_guide_protocol.html#AuthMagicCookie

But in general, you can enable a PHP extension through php.ini with a line
like this -

extension=extensions/php_openssl.dll

But you need to find out if you have openssl installed first.

Hope it helps,
Austin

On Thu, May 1, 2008 at 12:49 PM, Endorphinum <[EMAIL PROTECTED]> wrote:

>
> Hi everyone,
> i think that i am getting further with my knowledge about the PHP/API
> usage but i do have to questions.
> The first: is the code below this lines a correct way or am i totally
> on a wrong path?
> I have uploaded the ZEND libraries/folders etc, but do get an error.
>
> MY CODE IS THIS:
> <?php
>
> 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');
>
> $user = '[EMAIL PROTECTED]';
> $pass = 'xxx';
> $service = Zend_Gdata_Calendar::AUTH_SERVICE_NAME; // predefined
> service name for calendar
> $client = Zend_Gdata_ClientLogin::getHttpClient($user,$pass,$service);
>
> $gdataCal = new Zend_Gdata_Calendar();
> $query = $gdataCal->newEventQuery();
> $query->setUser('[EMAIL PROTECTED]');
> $query->setVisibility('private-abcdefg');
> $query->setProjection('full');
> $eventFeed = $gdataCal->getCalendarEventFeed($query);
> foreach ($eventFeed as $event) {
>  echo $event->title->text . '<br />';
> }
>
>
> ?>
>
> THE ERROR THAT APPEARS IS THIS:
>
> ...Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with
> message 'Unable to Connect to ssl://www.google.com:443. Error #1176:
> Unable to find the socket transport "ssl" - did you forget to enable
> it when you configured PHP....(and much more)....
>
> Is there a way to enable SSL even if my host does not allow me to
> change the php.ini ?
>
> Thanks in advance and have a nice night,
> Carlos
> >
>

--~--~---------~--~----~------------~-------~--~----~
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