Bonjour je veux crée un bot pour la plateforme skyblog qui mais des commentaires sur un blog automatiquement
voila des sites qui on le bot http://pleindcomms.com/

voila une sourche que j'ais trouvé mais je sais pas comment m'enservire :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?php
$ch = curl_init();
$prenom = 'AAAAAAAAAA';
$body = 'test de flood';
$url = 'http://www.skyblog.com/admBloger/commentaireForm.phtml?id_skynaute=19847170&id_article=571802243&id_template=15&display_pseudo=xiloubrazil';
$recherce_k = file_get_contents($url, "r");
preg_match('#<input type="hidden" name="k" value="(.+)" />#isU',$recherce_k,$matches);
echo $matches['1'];
$requete = 'commentaire=1&k='.$matches['1'].'&prenom='.$prenom.'&emailFrom=&body='.$body;
if(curl_setopt($ch, CURLOPT_URL, $url)) { echo 'Connection reussit'; }
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
for($i = 0; $i < 1; $i++)
{
if(curl_setopt($ch, CURLOPT_POSTFIELDS, $requete)) { echo 'ok'; } // requete
sleep(5);
echo 'ok';
echo "\n";
}
$reponse = curl_exec($ch);
curl_close($ch);
echo $reponse;
?>
</body>
</html>