PHP file_get_contents返回 false
也许我坐在这里太久了,盯着这个,但为什么会回到这里?我已经剪切并粘贴了URL,它工作正常?file_get_contents
false
$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;
编辑:
我已经检查过了,它肯定在。allow_url_fopen