Edit: I have this line:
$comments = "http://www.kiubbo.com/index.php?action=comments¶m=".$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.
Could be your parser failing to error correct properly. You haven’t, for instance, escaped your ampersands. Ask Feed Validator what is wrong.
If you want to write an XML file, use an XML tool, don’t munge together strings.