hi
the browser has nothing to do with your script. your script will keep runnin'
even ur browser crashes(see max execution time).
if you want to see how many mails were sent succesfully, count them and then
put them in a mysql table, something like this:
$sucess = 0;
$failed = 0;
foreach(blas as $email---in a file,array) || while(mysql_fetch_array---in a
table){
if (mail($email, $subject, $message, $headers)){
$sucess++;
mysql_query("insert into mail_table(mail,sending) values
('".$mail."','yeap')");
}else{
$failed++;
mysql_query("insert into mail_table(mail,sending) values
('".$mail."','nope')");
}
}
echo "succes: ".$sucess."<br>failed: ".$failed;
hth
----- Original Message -----
From: Mark Wheeler
To: [email protected]
Sent: Thursday, November 23, 2006 8:37 AM
Subject: [php_mysql] Browser timeout and script question
Hi,
I have a script that takes a long time (20 minutes, or so) to perform
(sending email out) and I'm afraid that the browser is timing out, so
I thought I would reload the windows with a progress script. After
starting the script, if I close the browser window or reload it, does
the original script keep going until it's finished, or does the
browser send a message to the server telling it to stop execution of
the script? The reason for asking is I'd like to start sending email,
but would then like to load that window with an update script that
checks and displays the process.
Thanks,
Mark
[Non-text portions of this message have been removed]