i have this code and all time i get same error
error_reporting(0);
$file = basename($_FILES['uploaded']['name']).'.scan';
if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $file)) {
$myFile = "ip_up.txt";
$fh = fopen($myFile, 'w');
$port1 = $_POST['port3'];
$port2 = $_POST['port4'];
$ofile = @fopen($file, "r");
if ($ofile) {
while (!feof($ofile)) {
$ip1 = fgets($ofile, 2048);
$ip = trim($ip1);
for($i=$port1;$i<$port2+1;$i++) {
$tB = microtime(true);
$fP = fSockOpen($ip, $i, $errno, $errstr, 1);
$tA = microtime(true);
if (!$fP) {
echo $ip.":".$i." – down";
} else {
echo $ip.":".$i." – ".round((($tA – $tB) * 1000), 0)." ms";
fwrite($fh,$ip."
");
}
echo "<br>";
flush();
}
}
}
echo '<a href="ip_up.txt">Download</a>';
}
else die('error');
?>
it gives me this error in line 20
Parse error: syntax error, unexpected T_STRING
i tried to put ' ' in line 20..but it dosend work !!