Re: Executing functions or scripts in parallel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 30, 2006 9:55 am, Phil Martin wrote:
>       I've made a very basic and small function to suit my needs in
> monitoring some hosts services. I've noticed that the script is a
> little bit
> slow because of the number of hosts and services to monitor. Is there
> a way
> to execute my function servstatus();  in parallel with every hosts to
> increase the speed ?

No, but if it's using http://php.net/fsockopen, that can be done
asynchronously...

You'll have to gut and change your servstatus() function to take a
BUNCH of servers to check, and open them all async, and then test them
all...

-- 
Like Music?
http://l-i-e.com/artists.htm

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux