简体   繁体   English

无法打开流:HTTP请求失败! HTTP / 1.0 500内部服务器错误

[英]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.

相关问题 file_get_contents无法打开流:HTTP请求失败! HTTP / 1.1 500内部>服务器错误 - file_get_contents failed to open stream: HTTP request failed! HTTP/1.1 500 Internal > Server Error in 警告:file_get_contents:未能打开 stream:HTTP 请求失败。 第 82 行 simple_html_dom.php 中的 HTTP/1.0 500 内部服务器错误 - Warning: file_get_contents : failed to open stream: HTTP request failed! HTTP/1.0 500 Internal Server Error in simple_html_dom.php on line 82 无法打开流:HTTP请求失败! HTTP / 1.0 400 - failed to open stream: HTTP request failed! HTTP/1.0 400 Paypal自适应Api付款错误无法打开流:HTTP请求失败! HTTP / 1.0 400错误请求 - Paypal Adaptive Api payment error failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request Facebook登录错误:无法打开流:HTTP请求失败! HTTP / 1.0 400错误请求 - Facebook Login Error: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request 无法打开流:HTTP请求失败! 静态地图Google API中的HTTP / 1.0 403禁止警告错误 - Failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden warning error in staticmap google api 无法打开流错误:Http请求失败 - Failed to open stream error : Http request failed [function.file-get-contents]:无法打开流:HTTP请求失败! HTTP / 1.0 400错误请求 - [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request 无法打开流:HTTP请求失败! HTTP / 1.0 400错误请求 - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request file_get_contents无法打开流:HTTP请求失败! HTTP / 1.0 400错误请求 - file_get_contents failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM