我想在wordpress和我的php应用程序中安装和使用google-api-php-client
。
我已请求我的管理员管理器来安装它。他们已将以下脚本包含到php.ini
文件中。
include_path=".;/usr/local/src/google-api-php-client/src"
现在我想在我的wordpress应用程序中包含并使用google api。我在wordpress的根目录下创建了一个名为google.php的文件来测试这一点,在我的研究中,我发现现在我需要在php文件中包含这些代码,并且所有代码都将启动并运行。
require 'Google/Client.php';
require 'vendor/autoload.php';
在Cent OS上使用include_path在php.ini中安装google api php客户端
最后我得到这样一个错误:
Fatal error: require(): Failed opening required 'Google/Client.php' (include_path='.;/usr/local/src/google-api-php-client/src') in
能不能帮我解决这个问题???