[英]How do I include a path of google client library in php
$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';
}
when I am running it on browser its showing following error.. 当我在浏览器上运行它时,它显示以下错误。
You are not using the path seperator when calling set_include_path, try this: 调用set_include_path时未使用路径分隔符,请尝试以下操作:
$r = set_include_path(get_include_path() . PATH_SEPARATOR . '\google-api-php-client-master\src');
Here is the documentation on set_include_path 这是有关set_include_path的文档
Edit 编辑
Did you restart Apache after making the change to your php.ini? 对php.ini进行更改后,是否重新启动了Apache?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.