更新时间:2022-06-18 08:48:08
尝试urlencode():
urlencode()
$film_q = urlencode($film_name[0]->title); $imdb_uri = "http://www.imdbapi.com/?i=&t=$film_q";
PHP file_get_contents()返回“无法打开流:HTTP请求失败!"
PHP警告:file_get_contents无法打开流:HTTP请求失败! HTTP/1.1 400错误请求
未能打开流:HTTP请求失败! HTTP / 1.0 400错误的请求
无法打开流:HTTP请求失败!的HTTP/1.1 400错误请求
THttpClient 无法打开流:HTTP 请求失败!HTTP/1.1 400 错误请求
[function.file-get-contents]:无法打开流:HTTP请求失败! HTTP / 1.0 400错误请求
file_get_contents-无法打开流:HTTP请求失败!找不到HTTP/1.1 404
PHP file_get_contents() 返回“无法打开流:HTTP 请求失败!";
file_get_contents无法打开流:HTTP请求失败! HTTP/1.1 500内部服务器错误
file_get_contents 无法打开流:HTTP 请求失败!HTTP/1.1 500 内部 >服务器错误