Installing Zend Framework GData on shared host

shared-hostingzend-framework

Been searching around Google for quite some time and cannot find any clear cut explanation of how to install and use Zend Gdata on a shared host.

I e-mailed my hosting company's support department and they told me that they cannot help with third party installs, pointing me in the direction of the INSTALL.txt that came with the framework. Unfortunately, that tells me to install the framework in my include_path, to which I do not have access.

I placed the framework in /public_html/includes/, which is where I store my third party scripts and such. When I try to access the YouTube Browser in the Demo, I get the following error:

Warning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in /home/tappess1/public_html/includes/ZendGdata/demos/Zend/Gdata/YouTubeVideoBrowser/index.php on line 42

Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tappess1/public_html/includes/ZendGdata/demos/Zend/Gdata/YouTubeVideoBrowser/index.php on line 42

I've seen mention of this being "stand-alone" but cannot seem to find any instructions on how to use it in that capacity. How does one use these features without placing the framework where it wants it to be – the include_path?

Thanks

Best Answer

Depending on PHP's and your webserver's configurations you may be able to use an .htaccess file to override the setting using

php_flag include_path ".:/somewhere:/somewhere/else:/and/so/on"

You'll want to be sure that the normal include_path (get it from phpinfo(); ) is included or you'll break everything else.

Otherwise, you'll have to use set_include_path() at the top of every script before you use gdata.

Related Topic