SRENG Khorn
SRENG Khorn

Reputation: 1221

unable include google api php client library (google-api-php-clientsrc/Google/autoload.php) in my php file

I want test google plus api php client on my localhost machine, but it not working like they said. Can you guide me what to do?

require_once realpath(dirname(FILE) . 'google-api-php-client/src/Google/autoload.php');

Here the errors: Warning: require_once(D:\xampp\htdocs\google_api): failed to open stream: Permission denied in D:\xampp\htdocs\google_api\login_with_gp.php on line 4

Fatal error: require_once(): Failed opening required '' (include_path='.;D:\xampp\php\PEAR') in D:\xampp\htdocs\google_api\login_with_gp.php on line 4

Upvotes: 0

Views: 776

Answers (1)

Rg14
Rg14

Reputation: 310

Be sure to have PHP installed in the localhost and the Apache server on. The files are in the right place, so it should work.

Upvotes: 1

Related Questions