Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • nope doesn't work. It's a weird one, the URL works from a browser, but not when using file_get_contents... Should I be able to echo the $apicall or display it somehow to check it's working? Commented Aug 16, 2019 at 17:00
  • If you use a hosting provider I would ask them about it. Commented Aug 16, 2019 at 17:23
  • Re logging try error_log('fgc:' . print_r($apicall, true));. Output goes to error log. which maybe /var/log/apache2/error_log but that depends on your web service and config. Commented Aug 16, 2019 at 17:32