It outputs correctly on my computer,but after I upload it to sever,it outputs nothing but blank.You can check it here http://freelance.moneymakingfocus.com/rss.php What's the problem?Thanks
If you turn on error reporting you will have a better idea why. Its most likely your hosting provider has some functions switched off. Add this to rss.php just after <?php error_reporting(E_ALL); PHP:
Hi your rss output is incomplete and it has an error This page contains the following errors: error on line 4 at column 56: EntityRef: expecting ';' If you look into the source code of that page you will note something like this: <language>en-us</language>rss test why is rss-test outside of the XML tags ? also <channel> and <rss> tags are not closed (probably because the error above breaks the script)
Hey I add "rss test" myself to see what is wrong that's not the problem,if I remove it,it still can't output correctly you can check it again,so such error now,but still don't outpu
Try to encode variables with htmlspecialchars like: $myvar = htmlspecialchars($myvar); then output xml.
Hey thanks for your help,it works now after I simply add htmlspecialchars before TITLE ,although I still don't understand why