相关疑难解决方法(0)

谷歌API autoload.php丢失

我之前从未使用过Goodle API,现在我尝试通过API访问Google日历.

我下载了google-api-php-client-master.zip,解压缩了.../src/Google目录并将其复制到我的网络服务器(由第三方托管,这意味着我无法安装任何东西).根据样本,我的代码需要从头开始

<?php
require_once "Google/Client.php";
require_once "Google/Service/Calendar.php";
....
Run Code Online (Sandbox Code Playgroud)

但是Client.php抛出一个错误:

致命错误:require_once():在第18行的/homepages/39/d396519017/htdocs/VC2/Google/Client.php中打开所需的''(include_path ='.:/ usr/lib/php5.4')失败

Client.php-Line 18就是这一行 require_once realpath(dirname(__FILE__) . '/../../autoload.php');

但是我无法在任何地方找到autoload.php.我错过了什么?

谢谢!

php google-api-php-client

3
推荐指数
1
解决办法
7437
查看次数

标签 统计

google-api-php-client ×1

php ×1