1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <? $action = $_POST [ "action" ]; $portaddres = $_POST [ "portaddres" ]; $ipaddres = $_POST [ "ipaddres" ]; if ( $action == 'y' ){ $port_array = explode ( "," , $portaddres ); echo "IP :" . $ipaddres .' '; for ( $i =0; $i < count ( $port_array ); $i ++){ ob_implicit_flush(true); $fp = @ fsockopen ( $ipaddres , $port_array [ $i ], $errno , $errstr , 2); echo $port_array [ $i ]; ob_end_flush(); if ( $fp ){ echo " <font color=#0000FF>Open</font> "; } else { echo " <font color=#FF0000>Close</font> ";} } } ?> |