PHP E-mail Script with time interval?

  • Thread starter Thread starter Thomas
  • Start date Start date
T

Thomas

Guest
I have an e-mail script already with php, but I need it to run every 500 miliseconds. I basically need a time interval for the script to run every 500 miliseconds. Here's the code I have so far:

$counter = 0;
while ($counter <= 10) {
mail($to,$subject,$message,$headers);
echo "Your e-mail has been sent!<br>";
$counter = $counter + 1;

P.S. the script is not only going to run ten times, this is just an example I have been practicing with until my script is finished.

Any help would be appreciated.
 
Back
Top