Hi all, This test code runs through an array of email addresses with the goal of stopping every 20 rows for 60 seconds.
Problem with Sleep command
8
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:
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
This test code runs through an array of email addresses with the goal of stopping every 20 rows for 60 seconds.
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
- tgdrew
- [2] replies
- MikeHayes
- MikeHayes
- tgdrew
- tgdrew
- MikeHayes
- AdWorkMedia
Next Topics on Trending Feed
-
8