Hi all,
This test code runs through an array of email addresses with the goal of stopping every 20 rows for 60 seconds.
I get the error:PHP Code:<?php
$counter = 0;
$last = 21;
foreach ($all_mails as $mails)
{
echo $mails['e_mail'],'br /';
$counter ++;
if $counter = $last
{
$counter = 0;
$last = $last + 20;
sleep(60);
}
}
?>
Parse error: syntax error, unexpected T_VARIABLE, expecting '(' in C:\xampp\htdocs\mail_post.html_2.php on line 26
This is the '(' after the sleep command.
What's wrong please?
Mike



Reply With Quote




Bookmarks