PHP - RSS builder

前端 未结 6 1614
天命终不由人
天命终不由人 2021-01-22 04:25

I have a old website that generate its own RSS everytime a new post is created. Everything worked when I was on a server with PHP 4 but now that the host change to PHP 5, I alwa

6条回答
  •  离开以前
    2021-01-22 04:51

    There are lots of things that can make XML malformed. It might be a problem with character entities (a '<', '>', or '&' in the data between the XML tags). Try running anything output from a database through htmlentities() when you concatenate the string. Do you have an example of the generated XML for us to look at so we can see where the problem is?

提交回复
热议问题