Topic: Serial-Submission To Stopforumspam via pun_approval
Ok, I have say 30-40 posts I want to submit to stopforumspam at a go (so not submitting one by one manually, which involves 6 mouse clicks for each submission).
The posts are all in pun_approval filter.
Should this be done by ticking each post and then using foreach ?
[code=php]
foreach($myarray as $myvariable)
{
echo "$myvariable, ";
}
[/code]
I can also just export the ip, username and email to a .csv file - but then how to submit ?
I was also shown this over in another forum
[code=php]
$url = "http://www.stopforumspam.net/api.php?username={spammer}&f=serial";
$sql = "SELECT username FROM forum WHERE spammer = 'yes'";
$erg = mysql_query($sql);
while ( $row = mysql_fetch_assoc($erg) ) {
$spammer = urlencode(trim($row['username']));
$url_jetzt = str_replace('{spammer}',$spammer,$url);
$data = file_get_contents($url);
}
echo 'fertsch';
[/code]