I am trying to implement oAuth using Zendframe work. The script is running great on my localhost whereas when i am hosting the same files on to server (online) it is giving me include path error. I am not figuring out what might be the problem.

Error : Warning: require_once(Zend/Http/Client.php) [function.require-once]: failed to open stream: No such file or directory in

Thank You

Accepted Answer

You have to add the path in which Zend Framework is installed to your include path:

set_include_path('/path/where/Zend/directory/is' . PATH_SEPARATOR . get_include_path());

The include path is where PHP searches when you include a script.

Also, it's likely that you may have to upload the Zend Framework to your hosting server, as your hosting provider may not have installed it.

Written by user576875
This page was build to provide you fast access to the question and the direct accepted answer.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki