我想用下面讓谷歌加驗證到笨: https://code.google.com/p/google-api-php-client/如何在CodeIgniter中包含第三方庫?
我已經把這些文件在THIRD_PARTY /谷歌API的PHP客戶端/ src目錄
如果我這樣做不CI,我會簡單地使用:
require_once 'google-api-php-client/src/Google_Client.php';
require_once 'google-api-php-client/src/contrib/Google_PlusService.php';
什麼是CI等效的方式來「要求」這些文件?我曾嘗試做
require APPPATH .'third_party/google-api-php-client/src/Google_Client.php';
但是得到發表瞭如下消息:
消息: 要求(應用/ THIRD_PARTY /谷歌API的PHP客戶端/ src目錄/ Google_Client.php): 失敗打開流:權限被拒絕
什麼是'谷歌_Client.php'的權限? –
rw-r -----(640) – K20GH
嘗試將權限更改爲644,然後查看它是否運行。使用'chmod 644 Google_Client.php' –