Maybe I've been sat here too long staring at this but WHY would file_get_contents
return false
here? I've cut and paste the URL and it works fine?
$url = "http://jobs.github.com/positions.json?search=" . $as_any . "&location=" . $location;
// URL contains http://jobs.github.com/positions.json?search=Project Manager&location=London
var_dump($url);
$json = file_get_contents($url);
var_dump($json);
$results = json_decode($json, TRUE);
var_dump($results);
exit;
EDIT:
I have checked for allow_url_fopen
and its definitely on.