Re: Array question - Please help

From: Date: Thu, 23 May 2002 18:07:53 +0000
Subject: Re: Array question - Please help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-98962@lists.php.net to get a copy of this message
On Friday 24 May 2002 01:03, Dan McCullough wrote: > Here is the problem. I have over 60 subdomains to check on a regular > basis. I wrote a php script that gets a list from a text file and then > checks whether it can open that domain/subdomain. That works great. My > problem is that everything is lumped together, so I have to scan a list of > 60 names for the one that fails, I also get 1 email for each time the check > fails. > > How can I get a list broken up by failed and passed, and only get one email > with a list of the subdomains that failed. When you loop through add the status for the domain onto a results array. When the loop is finished, then send the mail with the contents of the results array. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* To be is to program. */

« previous php.general (#98962) next »