skip to Main Content

file_get_contents() returning empty even though allow_url_fopen = On – Apache

Problem file_get_contents() is returning an empty string for some reason. Code index.php <?php $value = file_get_contents("http://foo.com/somefile.txt"); echo $value; ?> php.ini allow_url_fopen = On allow_url_include = On http://foo.com/somefile.txt 69.00000000 My Research Generally when file_get_contents("http://foo.com/somefile.txt") returns an empty string, it is due…

VIEW QUESTION
Back To Top
Search