I'm attempting to implement oAuth using Zendframe work. The script is running great on my small localhost whereas after i am hosting exactly the same files onto server (online) it's giving me include path error. I'm not determining what may be the issue.

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


You need to add the road by which Zend Framework is installed for your include path:

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

The include path is how PHP searches whenever you incorporate a script.

Also, it's likely you will probably have to upload the Zend Framework for your hosting server, as the hosting provider might not have installed it.

Seems like the place where Zend Framework is available in your local host is defined within the default include path of the PHP configuration, or you are setting some include pathways specific to application atmosphere.

Compare the creation of your get_include_path() in development and production, to determine where it is going wrong. You can include the road in which the application will find the Zend files from with set_include_path(), eg: