【发布时间】:2013-07-16 20:11:58
【问题描述】:
这是我在 sublime explorer 中的文件:
我可以包含 config.php 但不能包含其他:
echo get_include_path(); //output: .:/usr/local/pear/share/pear
set_include_path(SITE_SERVER.'vendor/google-api-php-client/src');
echo get_include_path(); //output: /Users/harrywiles/Dropbox/Sites/headfirst/vendor/google-api-php-client/src
require_once 'config.php'; //works
require_once 'Google_Client.php'; //doesnt work
即使我知道路径是正确的,我也会遇到经典错误:
Fatal error: require_once(): Failed opening required 'Google_Client.php' (include_path='/Users/harrywiles/Dropbox/Sites/headfirst/vendor/google-api-php-client/src')
这让我很兴奋,所以非常感谢任何帮助!
【问题讨论】:
-
可能与文件权限有关。两个文件的chmod是一样的吗?
-
您是否可以针对其中一个示例应用程序进行完整性检查? PHP 示例在这里:code.google.com/p/youtube-api-samples,我们有一个关于如何在此处加载示例的视频:youtube.com/…
-
@Ikaj - 是的,我正在尝试样品。我只是把其他所有东西都删掉了,把它缩小到这个“要求”..
-
@Max - 谢谢你,先生!
标签: php youtube-api google-api