Script executing Telnet Shell Command...
| From: | Kondwani Spike Mkandawire | Date: | Mon, 22 Jul 2002 18:03:16 +0000 |
| Subject: | Script executing Telnet Shell Command... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-108909@lists.php.net to get a copy of this message | ||
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){
$runTheScriptCommand...
}
?>
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...
Spike...