Дюша
16.03.2008, 19:43
Помогите что не так, делаю запрос скрипт завершаеться
<form method=post >
<input type=text size=9 name=ip value='0.0.0'>
<input type=submit value="Сканировать Диапазон x.x.x.0-x.x.x.255">
<?php
if(isset($_POST['button'])) {
$ip = $_POST['ip'];
$valid_file = 'good_list.txt';
for($i=1; $i<255;$i++)
if($fs = fsockopen("http://$ip.$i/index.php", 80, $errno, $errstr, 1))
$new_spisok[$i] = "http://$ip.$i/index.php";
$fp = fopen($valid_file, 'w');
for($i=0; $i<count($new_spisok); $i++) fwrite($fp, $new_spisok[$i]);
fclose($fp); }
?>
<form method=post >
<input type=text size=9 name=ip value='0.0.0'>
<input type=submit value="Сканировать Диапазон x.x.x.0-x.x.x.255">
<?php
if(isset($_POST['button'])) {
$ip = $_POST['ip'];
$valid_file = 'good_list.txt';
for($i=1; $i<255;$i++)
if($fs = fsockopen("http://$ip.$i/index.php", 80, $errno, $errstr, 1))
$new_spisok[$i] = "http://$ip.$i/index.php";
$fp = fopen($valid_file, 'w');
for($i=0; $i<count($new_spisok); $i++) fwrite($fp, $new_spisok[$i]);
fclose($fp); }
?>