Edit: I have this line:
$comments = "http://www.kiubbo.com/index.php?action=comments&param=".$articles[$index]->getId();
And if I put it here it works out in the title tag, but not on the link or guid tags.
fwrite ($fp, "<item>\n");
fwrite ($fp, " <title>$title</title>\n");
fwrite ($fp, " <link>$comments</link>\n");
fwrite ($fp, "<guid>$comments</guid>\n");
fwrite ($fp, "</item>\n");
}
fwrite ($fp, "</channel></rss>\n");
fclose ($fp);
For some reason it takes out the "¶m" part of the link ($comments).
Thanks everybody.