[PHP] Re: Script Testing Portal Connections...

2002-07-24 Thread Kondwani Spike Mkandawire
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > >#!/usr/local/bin/php -q > > >// don't timeout! > >set_time_limit(0); > > > >// set some variables > >$host = "1.2.3.4..."; > >$port = 1234; > >$command = "/usr/games/fortune"; > > # I must be missing something, cuz

[PHP] Re: Script Testing Portal Connections...

2002-07-23 Thread Richard Lynch
>#!/usr/local/bin/php -q >// don't timeout! >set_time_limit(0); > >// set some variables >$host = "1.2.3.4..."; >$port = 1234; >$command = "/usr/games/fortune"; # I must be missing something, cuz I don't see where this $command is used... >// create socket >$socket = socket(AF_INET, SOCK_STREAM,