Re: [PHP] Executing functions or scripts in parallel

2006-05-30 Thread Richard Lynch
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 fun

Re: [PHP] Executing functions or scripts in parallel

2006-05-30 Thread Adam Zey
Phil Martin wrote: Many parts of this script were found at the following site: http://www.sitepoint.com/article/udp-portscanning-php This script isn't totally mine. I've just adapted it to my needs and it is working quite well, telling me when a service is up or down ... read the article for fur

Re: [PHP] Executing functions or scripts in parallel

2006-05-30 Thread Phil Martin
Many parts of this script were found at the following site: http://www.sitepoint.com/article/udp-portscanning-php This script isn't totally mine. I've just adapted it to my needs and it is working quite well, telling me when a service is up or down ... read the article for further details. Anywa

Re: [PHP] Executing functions or scripts in parallel

2006-05-30 Thread Jochem Maas
Phil Martin wrote: Sure, sorry about that. I have a function that tells me if the host is DOWN or UP. I want to run this function in parallel for each host I monitor. The function is the following: function servstatus($remote_ip, $remote_ip_port, $remote_ip_proto) { if ($remote_ip_proto == "tcp

Re: [PHP] Executing functions or scripts in parallel

2006-05-30 Thread Phil Martin
Sure, sorry about that. I have a function that tells me if the host is DOWN or UP. I want to run this function in parallel for each host I monitor. The function is the following: function servstatus($remote_ip, $remote_ip_port, $remote_ip_proto) { if ($remote_ip_proto == "tcp") { $socket

Re: [PHP] Executing functions or scripts in parallel

2006-05-30 Thread Dave Goodchild
On 30/05/06, Phil Martin <[EMAIL PROTECTED]> wrote: Hi everyone, 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 execut