I really am stumped on this one. I followed the instructions on http://code.google.com/apis/gdata/articles/php_client_lib.html#php-path-installation The PHP Installation Checker (can be found on the linked page) gives me an error that the include dir is wrong, so I tried to be sure that is not the problem.
This is what my directory looks like:
[...]/httpdocs/include/library/Zend# ls
Exception.php Gdata Gdata.php Http Loader.php Registry.php Uri Uri.php Validate Version.php test.php
as you can see, my test.php and Loader.php are in the same folder.
[...]httpdocs/include/library/Zend# cat test.php
<?php
require_once("Loader.php");
echo "ok";
?>
This error comes up in my error.log:
PHP Fatal error: require_once(): Failed opening required 'Loader.php' (include_path='.:') in /var/www/vhosts/[domain]/httpdocs/include/library/Zend/test.php on line 2
I also tried setting an absolute include path:
[...]httpdocs/include/library/Zend# cat test.php
<?php
$clientLibraryPath = '/var/www/vhosts/[domain]/httpdocs/include/library/Zend';
$oldPath = set_include_path(get_include_path() . $clientLibraryPath);
echo get_include_path();
require_once("Loader.php");
?>
It does echo .:/var/www/vhosts/[domain]/httpdocs/include/library/Zend but again:
PHP Fatal error: require_once(): Failed opening required 'Loader.php' (include_path='.:/var/www/vhosts/[domain]/httpdocs/include/library/Zend') in /var/www/vhosts/[domain]/httpdocs/include/library/Zend/test.php on line 6
Some info from phpinfo():
PHP API => 20090626
PHP Extension => 20090626
Zend Extension => 220090626
Zend Extension Build => API220090626,NTS
PHP Extension Build => API20090626,NTS
PHP Version => 5.3.2-1ubuntu4.14
I really hope you guys can help me out.. this is driving me crazy
安装调试扩展xdebug之后,我发现上载的文件归另一个用户和用户组所有,这就是为什么不允许我的test.php(root:root)访问Loader.php(sis:pcacln)chown sis的原因: pcacln test.php发挥了很大作用
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.