You could always do a cron job and have a script run every 10-15 minutes,
load the existing and connecting IP's in a text file and use another script
to print out the latest successful pings.

-C

""Brian"" <[EMAIL PROTECTED]> wrote in message
9e4msm$e5a$[EMAIL PROTECTED]">news:9e4msm$e5a$[EMAIL PROTECTED]...
> Good point, I considered, doing it that way, I was just hoping that there
> might be a 'prettier' way to do it from within PHP.  Right now I'm using
> fping from within a php loop that steps through the class C.  The machine
> I'm doing this on is dog slow though, so I'm hoping that when I move the
> final version over to our main webserver it will run the script at an
> acceptable speed.  If not though, I have a feeling that I will most likely
> implement your suggestion, unless someone knows of the 'pretty' solution
> that I seek :)
>
> Brian
> "He did not know the strength of my Kung fu"
> --Wong Fei Hung "The Iron Monkey"
>
> "Mohamed LRHAZI" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Brian,
> >
> > Why don't leave the "pinging" to some other script, and have that other
> > script run continuesouly and upfate a sql table with the ststus of each
> > and time stamp of when it was last ping'ed...etc
> >
> > Mohamed~
> >
> > Brian wrote:
> > >
> > > I'm writing a script to help us manage one of our Class C networks.
The
> > > page loads all of the host IPs, who owns them, phys desc. of the box,
> and
> > > does a forward reverse lookup on all of the addresses.  I'd like to
add
> a
> > > column that shows which machines are currently reachable on the
network.
> A
> > > simple ping would probably be easiest, but parsing a standard ping for
> 254
> > > hosts would cause the script to have about a 10 minute load time. are
> there
> > > any quick easy, and most importly, low system overhead, solutions to
> this
> > > problem?
> > >
> > > Brian Artiaco
> > > [EMAIL PROTECTED]
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
[EMAIL PROTECTED]
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to