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 file-get-contents() to make the call, I get:
Warning: file_get_contents(http://...../cron.php?act=junoo): failed to open stream: HTTP request failed! in /home/..../..../.../userdat.php on line 37
The code I am using is:
$junoo = json_decode(file_get_contents("http://.../cron.php?act=junoo"),true);
$lan = $junoo['id'];