PHP not working
Posted by: Col_Boogie (---.lightspeed.mmphtn.sbcglobal.net)
Date: December 29, 2014 05:08AM

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

Options: ReplyQuote
Re: PHP not working
Posted by: Otomatic (Moderator)
Date: December 29, 2014 09:46AM

Hi,

> <?
NO. You must use <?php, not <?

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.