이 코드 그것은 나에게 내가 줄 ''해 봤어 (20)구문 분석 오류
Parse error: syntax error, unexpected T_STRING
라인에서이 오류를 제공 내가 같은 오류
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."\r\n");
}
echo "<br>";
flush();
}
}
}
echo '<a href="ip_up.txt">Download</a>';
}
else die('error');
?>
을 얻을 수있는 모든 시간이 20 ..하지만 그것은 일을 dosend !!
아름다운 코드입니다. – Mark