Dowload the Zend Framework, put it into a directory on your server, add this directory to your include path.
Example
<?php
$path = '/usr/lib/zend';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
?>
Question
I'm trying to use a bit of code to cloud print with Google:
$client = Zend_Gdata_ClientLogin::getHttpClient('username', 'password', 'cloudprint');
$Client_Login_Token = $client->getClientLoginToken();
$client->setHeaders('Authorization','GoogleLogin auth='.$Client_Login_Token);
$client->setHeaders('X-CloudPrint-Proxy','Mimeo');
$title = 'test';
$fileUrl = 'url';
$Printer_ID = 'ad83528c-a114-3f68-4768-c132ecc32ea2';
$client->setUri('http://www.google.com/cloudprint/interface/submit');
$client->setParameterPost('title', $title);
$client->setParameterPost('content', $fileUrl );
$client->setParameterPost('contentType', 'url' );
$client->setParameterPost('printerid', $Printer_ID);
$client->setParameterPost('capabilities', '{}' );
$client->setConfig(array( 'timeout' => 180 ));
$response = $client->request(Zend_Http_Client::POST);
$response = json_decode($response->getBody());
var_dump($response);
I'm getting this error:
Fatal error: Class 'Zend_Gdata_ClientLogin'
I'm using GoDaddy shared hosting. Is there just a file I can include_once that will contain this. I've downloaded the Zend framework but can't find the class?
Solution
Dowload the Zend Framework, put it into a directory on your server, add this directory to your include path.
Example
<?php
$path = '/usr/lib/zend';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
?>