file_get_contents returns false on a new server
If you’re using
$variable = file_get_contents($page);
and you are sure, that the $page page is available and the server has connectivity you can try using:
var_dump(file_get_contents($page));
If the result is
bool(false)
The function returns the read data or FALSE on failure.
You can check your php.ini if allow_url_fopen is as follows:
allow_url_fopen = On

Leave a Reply