PHP5 giving failed to open stream: HTTP request failed error when using fopen

前端 未结 5 1297
渐次进展
渐次进展 2021-01-02 06:22

This problem seems to have been discussed in the past everywhere on google and here, but I have yet to find a solution.

A very simple fopen gives me a

5条回答
  •  忘掉有多难
    2021-01-02 07:01

    I'm not at all sure about whether this is the problem or not, but I know in the past I've had problems with opening URLs with fopen, often due to php.ini's allow_url_fopen or other unknown security settings

    You may want to try cURL in PHP, which often works for me, you'll find an example really easily by googling that.

提交回复
热议问题