Boxerman Posted September 18, 2017 Share Posted September 18, 2017 Evening all! I'm running into an issue where a site i have signed up to provides an API, however when I try to decode it on my server it outputs: NULL bool(true) The PHP script being used: $url = file_get_contents("http://apiwebsite.com/blah?latest"); $json = json_decode($url, true); // decode the JSON into an associative array echo '<pre>' .var_dump($json, true). '</pre>'; When i try to browse to this site on my server it redirects to a website. Is there a way to bypass the login? or actually login to get the API? Thanks everyone Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.