What type of counter should I use?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Klaws_wolverine
Forum Commoner
Posts: 32
Joined: Mon Sep 29, 2003 10:11 am

What type of counter should I use?

Post by Klaws_wolverine »

Hello All,

Here's my problem, we have an online form that connects to a Domino file parser, not all emails are being received! IT is saying that we are gettign all emails, this is impossible, the count is way too low, and ppl are obviously getting timeouts, IT suggested that I put a counter on the submit button.

This will even further reduce the number of emails we get because it will probably prolong the request.


Any Idea what I should do?

Any snippet of code would be much appreciated.

Thanks
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Only increment the counter on a successful execution of that particular part of the script.

eg.

Code: Select all

<?php
if(mail(...whatever...))
{
  // exec counter
} else {
 // error
}
?>
Post Reply