0
我櫟並在GAE上運行,當我處理這個代碼,我得到錯誤:服務器錯誤500服務器錯誤?
<?php
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Http_Client');
Zend_Loader::loadClass('Zend_Gdata');
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
Zend_Loader::loadClass('Zend_Gdata_Spreadsheets');
$user="user";
$pass="pass";
try {
$client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass,
Zend_Gdata_Spreadsheets::AUTH_SERVICE_NAME);
} catch (Zend_Gdata_App_AuthException $ae) {
exit("Error: ". $ae->getMessage() ."\nCredentials provided were email: [$user] and password [$pass].\n");
}
?>
事情是GAE阻止每一個捲曲的請求,我無法做出請求電子表格
也許你應該告訴我們更多關於你的代碼? – yokoloko
我試過你的代碼,它工作正常,我沒有得到服務器錯誤。只是證件例外。你確定你已經安裝捲曲嗎? – yokoloko
忘了它,我認爲你需要捲曲,但它使用stream_socket_client,所以你有它與PHP安裝 – yokoloko