I am trying to execute a Script running a telnet command
testing through a range of IP connections...
Here goes:

    $str = "123.456.789.";
    $count = 0;

    while ($count < 999){

What I want to stick into the while loop is if connection
was successful, break...  Is there a way I can check whether
telnet connection was successful on each step through the
loop or do I have to restructure my program and try
connecting to a port via fsockopen...  By the way
does anyone know what port number telnet connects to...


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to