在Google上search了相当长的一段时间,找不到任何关于如何在共享主机上安装和使用Zend Gdata的明确解释。
我通过电子邮件发送了我的托pipe公司的支持部门,他们告诉我,他们不能帮助第三方安装,指向框架附带的INSTALL.txt的方向。 不幸的是,这告诉我在我的include_path中安装框架,我没有访问权限。
我把框架放在/ public_html / includes /中,这是我存储我的第三方脚本等。 当我尝试访问Demo中的YouTube浏览器时,出现以下错误:
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
我已经看到提到这是“独立”,但似乎无法find有关如何使用它的指示。 如何在不将框架放置在想要的地方的情况下使用这些function – include_path?
谢谢
根据PHP和您的networking服务器的configuration,您可以使用.htaccess文件覆盖使用的设置
php_flag include_path ".:/somewhere:/somewhere/else:/and/so/on"
你会想要确保正常的include_path(从phpinfo(); )得到它,否则你会打破一切。
否则,在使用gdata之前,必须在每个脚本的顶部使用set_include_path() 。