如何在php中包含google客户端库的路径
当我在浏览器上运行它时,它会显示以下错误。。如何在php中包含google客户端库的路径,php,Php,当我在浏览器上运行它时,它会显示以下错误。。 调用set\u include\u path时,您没有使用路径分隔符,请尝试以下操作: $r = set_include_path(get_include_path() . '\google-api-php-client-master\src'); echo $r; require_once 'Google/Client.php'; require_once 'Google/Service/AdExchangeSeller.php'; functi
调用set\u include\u path时,您没有使用路径分隔符,请尝试以下操作:
$r = set_include_path(get_include_path() . '\google-api-php-client-master\src');
echo $r;
require_once 'Google/Client.php';
require_once 'Google/Service/AdExchangeSeller.php';
function __autoload($class_name) {
include 'examples/' . $class_name . '.php';
}
编辑
在对php.ini进行更改后是否重新启动了Apache?什么是dsads?您不能将错误消息作为文本发布在此处吗?很容易阅读,很抱歉。我编辑了我的问题,你在这里有答案,我没有得到任何答案。实际上,我安装了google_客户端库,将其添加到php/Pear文件夹中,并在php.ini中给出了库的路径,如include_path=“;C:\xampp\php\Pear\google api php client\src”但它仍然显示出一个错误。我如何安装这个库?我不知道你在问什么。。。你是说你还没有下载这个吗?set_include_path是PHP的一部分,只需复制并粘贴我的代码即可替换您发布的第一行代码。
$r = set_include_path(get_include_path() . PATH_SEPARATOR . '\google-api-php-client-master\src');