PHP file_get_contents() returns “failed to open stream: HTTP request failed!”

前端 未结 11 919
名媛妹妹
名媛妹妹 2020-11-22 13:03

I am having problems calling a url from PHP code. I need to call a service using a query string from my PHP code. If I type the url into a browser, it works ok, but if I use

11条回答
  •  再見小時候
    2020-11-22 13:35

    Could this be your problem?

    Note: If you're opening a URI with special characters, such as spaces, you need to encode the URI with urlencode().

提交回复
热议问题