Help me to make a script
Posted: Sat Jun 01, 2002 8:55 pm
I'm trying to make a script that will check on several ips to see if they have an FTP server...well, the script goes like this:
The problem is that it doesn't work, the reason is in my other post...the numbers of the ips won't join...i hope you can help me 
Code: Select all
<?
/* Jose Arce Ping 0.1 */
$i = 0 ;
$servidores = $ip.$i ;
while (++$i <= 255) {
$conexion = ftp_connect($servidores);
$conectar = ftp_login($conexion, 'anonymous', 'on@thenet.com') ;
if ((!$conexion) || (!$conectar)) {
echo "$servidores -----> imposible conectarse anonimamente" ;
die;
}else{
echo "$servidores -----> <font color=red>si conecta anonimamente" ;
ftp_close($conexion);
}
}
?>