bueno cualkier cosa me escribe en el txt, me escribe la palabra array...
me queda asi:
$com[0] = "Array";
$com[1] = "Array";
$com[2] = "Array";
y lo hago asi yo
Código PHP:
include($_SERVER['DOCUMENT_ROOT']."/Replays/Downloads-Ratings.txt");
$i = $_GET['rep'];
..
..
$com = str_replace("\n", "<br>", $_POST['Comment']);
if (!is_array($comments[$i])) $comments[$i] = array($com);
else $comments[$i][] = $com;
...
...
for ($j=0;$j<count($comments);$j++) fwrite($d, "\$comments[$j] = \"$comments[$j]\";\r\n");