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.
*/


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

Reply via email to