Posted by:
Col_Boogie
(---.lightspeed.mmphtn.sbcglobal.net)
Brought Wamp server up, runs html fine. However, php code not working. (I had tested it else where.)
Apache/2.4.9 (Win32) PHP/5.5.12 -- PhP Version information: 4.1.14, latest stable version: 4.3.3
code id real simple:
<?
ob_clean(); ob_start();
$file = $_GET['list'];
$File = fopen($file, "r" ) or die ("$file failed to open" );
header('Content-Type: text/plain');
header("Content-Disposition: inline; filename=\"{$file}\"" );
echo fread($File,filesize($file));
fclose($File);
exit;
?>
nothing is being returned