내 wamp 서버 (localhost)에 하나, ovh.com 전용 공간에 하나씩 두 개의 파일을 만들었습니다. ...내 서버에서 file_get_contents가 작동하지 않습니다.
어떻게 할 수 happends를
내 서버에echo $search = file_get_contents('https://prod.api.pvp.net/api/lol/euw/v1.3/game/by-summoner/19319907/recent?api_key=6fa73a35-6477-412d-97a6-b6739cb6cf1b');
등 â, þ 또는 ¬처럼, 일부 잘못된 문자가, 나는이 문제를 해결하는 방법 : 두 파일은이 내용을 포함 ?
편집 : 파일에 관한 것이 아닙니다! 그것은 서버에 관한 것이고, 원인 파일은 정확히 동일합니다! http://www.dietadom.fr/test.php, 여기에 나쁜 : 모두 그 스크립트에 요청에서 http://82.124.50.144/test.php
헤더 :
작업 :
curl -I http://www.dietadom.fr/test.php
HTTP/1.1 200 OK
Set-Cookie: clusterBAK=R1564861669; path=/; expires=Wed, 19-Mar-2014 16:38:43 GMT
Date: Wed, 19 Mar 2014 15:19:31 GMT
Content-Type: text/html
Connection: keep-alive
Set-Cookie: cluster=R1649376954; path=/; expires=Wed, 19-Mar-2014 16:32:22 GMT
Server: Apache
X-Powered-By: PHP/5.4.24
Pragma: no-cache
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Vary: Accept-Encoding
가 작동하지 않음 :
curl -I http://82.124.50.144/test.php
HTTP/1.1 200 OK
Date: Wed, 19 Mar 2014 15:19:48 GMT
Server: Apache/2.4.4 (Win64) OpenSSL/1.0.1d PHP/5.4.12
X-Powered-By: PHP/5.4.12
Content-Type: text/plain; charset: UTF-8
현재 좋은 일을 확인하실 수 있습니다
인코딩을 수정하십시오. –
파일은 정확히 동일합니다 ... UTF-8 (BOM 제외) – user3438083
서버에서 보낸 인코딩 헤더가 잘못되었지만 파일 인코딩이 아닙니다. – DanFromGermany