file_get_contents(http:// myip:52 / send?message = asdasd):无法打开流:连接被拒绝

时间:2020-09-27 21:15:40

标签: php json file-get-contents

当我运行下面的代码时,出现错误: file_get_contents(http:// myurl:52 / send?message = asdasd):无法打开流:连接被拒绝

      file_get_contents((str_contains(url('/'), "FILE_USE_INCLUDE_PATH") ? 'http://myurl' : 'http://myurl') . ':52/send?message='.$message);
        return json_encode(['success' => $message]);
    }

我不明白为什么会出现此错误,如果我将端口更改为53,则会收到相同的错误

0 个答案:

没有答案