그래서 google-api-php-client을 사용하여 액세스 토큰을 받고 php-google-spreadsheet-client을 사용하는 웹 스프레드 시트에서 데이터를 가져 오는 웹 사이트를 만들었습니다. 최근 localhost에서 모든 작업을 처리했지만 서버에 모든 것을 푸시하자마자 I got the error :. . .google-php-api-client가 로컬 호스트에서 리모트로 이동
-
나는 경로를 변경하려하지만 전혀 아무것도 할 것 같지 않았다.Warning: include_once(./libraries/google-api-php-client/src/Google/Client.php): failed to open stream: No such file or directory in /home2/alexcory/public_html/hackingedu/application/models/model.php
(click here for actual error) - 라이브러리의 모든 종속성을 검사하고 모두 만족합니다.
막혔습니다.
- 나는
Oauth Service Account
을 사용하고 있을지도 모르겠지만 솔직히 왜 이것이 작동하지 않는지는 모르겠다. 나는 어딘가에 이것을 읽는 방법이라고 읽었고 효과가 있었다. - 만약 이이라면 나는
Oauth Web Application
을 사용해야 할 수도 있습니다. API를 처음 시작할 때이 작업을 시도했지만 작업을 수행 할 수 없어서 누군가Oauth Service Account
을 사용한다고 말하는 사람을 우연히 만났습니다.
질문 :
나는 Oauth Web Application
를 사용해야 할 경우 this image 같이 방법의 Oauth 서비스 계정의 Public Key Fingerprints
에서 다릅니다의 Oauth 웹 응용 프로그램에 Client Secret
을합니까?
또한
나는 기본적으로 그냥에서 die('you win');
문이있는 DELETEme.php
파일에 다음 코드를 사용하여 시도했다.
if (file_exists('/DELETEme.php')) {
die('/DELETEme.php');
} elseif (file_exists('../DELETEme.php')) {
die("../DELETEme.php");
} elseif (file_exists('../../DELETEme.php')) {
die('../../DELETEme.php');
} elseif (file_exists('../../../DELETEme.php')) {
die('../../../DELETEme.php');
} else {
die("losing GRRRRR");
}
하지만 난 여전히losing GRRRR
을 얻고있다. 내가 No such file or directory in...
오류로 실행하면
▶ home
. . . index.php
. . . DELETEme.php
. . . ▶ application
. . . . . . ▶ models
. . . . . . . . . model.php
. . . . . . ▶ controllers
. . . . . . . . . controller.php
. . . ▶ views