Problem with Sleep command
This test code runs through an array of email addresses with the goal of stopping every 20 rows for 60 seconds.
<?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
* * * * My site * * * *
* * * * My paintings * * * *
* * * * My site * * * *
* * * * My paintings * * * *
* * * * My site * * * *
* * * * My paintings * * * *
AdWork Media » Global Affiliate Network & Content Locking Solutions
Custom Platform, Flexible Lockers, Offers For Every Country