2010年3月12日星期五

[fw-gdata] Problems with: $client = Zend_Gdata_ClientLogin::getHttpClient($user,$pass,$service);

Hi,

Total Newbie to this.

In my code below, I am getting the following error:

"A server error has occurred:

require(Zend_Uri_Http.php): failed to open stream: No such file or directory
in /Applications/MAMP/htdocs/ZendGdata/library/Zend/Uri.php
on line 126"

I downloaded and installed the latest build of the Zend Google library code.
Any ideas what may be wrong? Any help would be greatly appreciated.

Thanks.

<?php

require_once('../NOLOH/NOLOH.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');

class GCal extends WebPage {

function GCal() {
parent::WebPage();

$user = 'xxxxxxxxx';
$pass = 'xxxxx';
$service = Zend_Gdata_Calendar::AUTH_SERVICE_NAME; // predefined
service name for calendar
$client =
Zend_Gdata_ClientLogin::getHttpClient($user,$pass,$service);
}
}
?>
--
View this message in context: http://n4.nabble.com/Problems-with-client-Zend-Gdata-ClientLogin-getHttpClient-user-pass-service-tp1590852p1590852.html
Sent from the Zend gdata mailing list archive at Nabble.com.

没有评论: