我正在用symfony2與Google Drive api進行捆綁。我在Utils文件夾中有一個類:與來自Google的文件進行交互的認證(我把它放在完全相同的文件夾中),我想將這些文件包含在我的Authentication.php中。包含symfony2的文件
我有這樣的:
require_once 'google-api-php-client/src/Google_Client.php';
require_once 'google-api-php-client/src/contrib/Google_DriveService.php';
require_once 'google-api-php-client/src/contrib/Google_Oauth2Service.php';
但我得到這個錯誤:
Fatal error:
main()
: Failed opening required 'google-api-php-client\src\Google_Client.php'
@ stony你對這個問題有更多的想法嗎? – patricia