ok, avevo commesso io un errore nella copia del codice (ero di fretta, dovevo andare a pranzo dai parenti -.-)
cmq adesso il problema è che tronca sempre .-.
Codice PHP:
$date = date('d/m/Y - H:i:s');
$nome = $_POST['nome'];
$link = $_POST['link'];
$status = $_POST['status'];
$autore = $_POST['autore'];
$autore_link = $_POST['autore_link'];
if ($status == "undetected"){
$color = "green";
} else {
$color = "red";
}
$file = "list.html";
$fp = fopen($filename, "rb");
$contents = fread($fp);
fclose($fb);
$fp = fopen($file, "wb");
fputs($fp, "
<tr height=\"10\">
<td id=\"nome\" width=\"200\">
<a href=\"".$link."\">".$nome."</a>
</td>
<td id=\"status\" width=\"150\">
<font color=\"".$color."\">".$status."</font>
</td>
<td id=\"autore\" width=\"150\">
<a href=\"".$autore_link."\">".$autore."</a>
</td>
<td id=\"date\" width=\"200\">
<center>".$date."</center>
</td>
</tr>\r\n");
fputs($fp, "$contents");
fclose($fp);
/* BACKUP - Versione vecchia
$file = "list.html";
$fp = fopen($file, "a");
fputs($fp, "
<tr height=\"10\">
<td id=\"nome\" width=\"200\">
<a href=\"".$link."\">".$nome."</a>
</td>
<td id=\"status\" width=\"150\">
<font color=\"".$color."\">".$status."</font>
</td>
<td id=\"autore\" width=\"150\">
<a href=\"".$autore_link."\">".$autore."</a>
</td>
<td id=\"date\" width=\"200\">
<center>".$date."</center>
</td>
</tr>");
fclose($fp);
*/
ps: le informazioni arrivano