1
$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.. enter image description here

Community
  • 1
  • 1
anilPrajapati
  • 259
  • 2
  • 13

1 Answers1

1

You are not using the path seperator when calling set_include_path, try this:

$r = set_include_path(get_include_path() . PATH_SEPARATOR . '\google-api-php-client-master\src');

Here is the documentation on set_include_path

Edit

Did you restart Apache after making the change to your php.ini?

Clay
  • 4,700
  • 3
  • 33
  • 49