[英]failed to open stream: HTTP request failed! HTTP/1.0 500 Internal Server Error
function marketcurencylist($auth,$id)
{
$context = stream_context_create(
array("ssl"=>array(
'verify_peer'=>false,
'verify_peer_name'=>false,
),
'http' => array(
'method' => 'GET',
'header' => "Content-Type: application/json\r\n"."Authorization:".$auth."\r\n",
)
));
$response = file_get_contents(api_url().'market/allactivemarketslist', false, $context);
return $response;
}
failed to open stream: HTTP request failed!
无法打开流:HTTP请求失败! HTTP/1.0 500 Internal Server Error
HTTP / 1.0 500内部服务器错误
allow_url_fopen must be disabled on your server. 必须在您的服务器上禁用allow_url_fopen。 Either you can try enable it via php.ini or consider using cURL functions.
您可以尝试通过php.ini启用它,也可以考虑使用cURL函数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.