file_get_contents not working
-
- New to forums
- Posts: 2
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Tue May 19, 2015 12:35 am
file_get_contents not working
This use to work before, now everytime i try to use an API on the webhost i get "failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden"
Re: file_get_contents not working
file_get_contents works for me on my webhost. However using that function to call an external service is not advised. It'd be better to make a curl call so you can set headers, cookies, postVars, etc.
Re: file_get_contents not working
i tried a diferent type API, on localhost Xamp works but if i try nfo webhost same code it loads forever