file_get_contents() not working in IE
Posted: Mon Jun 14, 2010 3:05 pm
I have the following script:
This works wonderfully in firefox but displays nothing in IE. Is there a known issue with IE or is there something wrong with the script?
Code: Select all
<?php
$file = $_GET["selected_file"];
$filestring = file_get_contents($file);
$filearray = explode("<br/>", $filestring);
while (list($var, $val) = each($filearray)) {
++$var;
$val = trim($val);
print "Line $var: $val<br />";
}
?>