我正在尝试做一个非常简单的事情:
require_once 'vendor/google/src/Google/Client.php';
require_once 'vendor/google/src/Google/Service/Plus.php';
...我收到此错误:
require_once(Google/Auth/AssertionCredentials.php): failed to open stream: No such file or directory
Why?
我正在使用可用的最新版本https://github.com/google/google-api-php-client https://github.com/google/google-api-php-client似乎在 Client.php 中每个 require_once 使用了错误的路径...或者不是?
任何帮助将不胜感激!
多谢,
Niccolò
对于您的问题,您需要在 php 'include_path' 中添加库的基目录。
尝试将此行代码放在 require_once 之前
set_include_path( get_include_path() . PATH_SEPARATOR . 'vendor/google/src' );
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)