Disclaimer: There are similar kind of issues posted in stack overflow but those questions are their respective answers, neither suited this issue nor their answers helped to fix. Those problems are different and answers suited only those specific questions and not generic. They are no way helpful after a long struggle thinking twice I am posting this question to get a help. If someone don't like this question or don't understand, please communicate and get clarified instead of barely setting flag to close this question; better you can ignore and pass on...Thank you!
Requirement : I am using Zend framework for google calendar API with a core PHP website. It's an online taxi booking. If someone wants to book a taxi, the form should use the booking details to mark on the google calendar then database and finally paypal. If the payment is made in paypal then again it should update by a re-phrasing the calendar data to something like "Paid" else "Payment - Pending".
Problem : If I try to add the below code in the file the program throws the error message which is from the below line of codes.
- The below are mandatory to read where as the above are optional
This code is used to add an event to the google calendar.
How I should fix this issue?
// Setup path to the Zend Framework files
set_include_path('.' . PATH_SEPARATOR . ROOT_DIR.'/app/' . PATH_SEPARATOR . ROOT_DIR.'/lib/' . PATH_SEPARATOR . ROOT_DIR.'/lib/incubator' . PATH_SEPARATOR . get_include_path() );
echo 'Setup path to the Zend Framework files - completed'.'
// Register the autoloader
echo 'loader.php - require() completed'.'
Zend_Loader::loadClass('Zend_Gdata'); Zend_Loader::loadClass('Zend_Gdata_ClientLogin'); Zend_Loader::loadClass('Zend_Gdata_Calendar'); Zend_Loader::loadClass('Zend_Http_Client');
echo 'Register the autoloader - Completed';
// connect to service
$gcal = Zend_Gdata_Calendar::AUTH_SERVICE_NAME; $user = "email@example.com"; $pass = "*"; $client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $gcal);
echo 'connect to service - Completed';
// I have printed this statement - refer above code.
Setup path to the Zend Framework files - completed
Warning: require_once(Zend/Loader.php): failed to open stream: No such file or directory in /home/website/public_html/add-session-dev.php on line 20
Fatal error: require_once(): Failed opening required 'Zend/Loader.php' (include_path='.:/home/website/app/:/home/website/lib/:/home/website/lib/incubator:.:/usr/share/pear:/usr/share/php') in /home/website/public_html/add-session-dev.php on line 20
There are nothing executed after the above errors.