Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

RSS issue

Asked Modified Viewed 2,350 times
K
Kvido
K
Kvido 10
Linux-Ubuntu 09.03.60, Linux/Ubuntu, PHP5, HTML5, Mozilla-Firefox 3.6.3, Opera 10.51, IE 8.0.6
https://www.nekecamweb.cz
  • Senior Member, joined since
  • Contributed 524 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
asked
Senior Member

In PHPFusion v. 7 nforms me RSS Feeds:

&#65279;&#65279;<rss version='2.0' xmlns:atom='http://www.w3.org/2005/Atom'>
--^


link: http://www.pc-politika.cz

What's wrong? Thanks a lot!
0 replies

3 posts

K
Kvido
K
Kvido 10
Linux-Ubuntu 09.03.60, Linux/Ubuntu, PHP5, HTML5, Mozilla-Firefox 3.6.3, Opera 10.51, IE 8.0.6
https://www.nekecamweb.cz
  • Senior Member, joined since
  • Contributed 524 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
answered
Senior Member

Now he writes:

Error parsing XML: At the start of external entity lacks procedural instructions xml

Script /feeds/news.php/:

<?php
/*--------------------------------------------+
| PHPFusion 7 - Content Management System    |
|---------------------------------------------|
| RSS - Â&#314;á &#324;&#324;&#369;ë&#281;&#269;
| author: Nick Jones (Digitanium) © 2002-2008 |
| web: http://www.php-fusion.co.uk            |
| email: nick@php-fusion.co.uk                |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 3)  |
+--------------------------------------------*/
require_once "../maincore.php";
header("Content-Type: text/xml");
echo "<?xml version='1.0' encoding='utf-8'?>\n";

  if (file_exists(BASEDIR."rss/locale/".$settings['locale'].".php")) {
   include BASEDIR."rss/locale/".$settings['locale'].".php";
} else {
   include BASEDIR."rss/locale/English.php";
}

global $settings, $db_prefix;
$result = dbquery("SELECT * FROM ".$db_prefix."news ORDER BY news_datestamp DESC LIMIT 0, 10");
$numrows = dbrows($result);
echo "<rss version='2.0' xmlns:atom='http://www.w3.org/2005/Atom'>\n\n";
echo "<channel>\n";
echo "<title>".htmlspecialchars($settings['sitename']).". ".$locale['r103']."</title>\n";
echo "<link>".$settings['siteurl']."</link>\n";
echo "<description>".$settings['description']."</description>\n";
echo "<image>
        <title>".htmlspecialchars($settings['sitename'])."</title>
        <url>".$settings['sitebanner']."</url>
        <link>".$settings['siteurl']."</link>
    </image>";
echo "<language>".$locale['xml_lang']."-".$locale['xml_lang']."</language>\n\n";
for ($i=0;$i < $numrows;$i++)  {
$data = dbarray($result);
    if ($data['news_breaks'] == "y") { $data['news_news'] = nl2br($data['news_news']); }
    echo "<item>\n";
    echo "<title>".$data['news_subject']."</title>\n";
    echo "<link>".stripslashes(htmlspecialchars($settings['siteurl']."news.php?readmore=".$data['news_id']))."</link>\n";
    echo "<description>".stripslashes(htmlspecialchars($data['news_news']))."</description>\n";
    echo "<pubDate>".date("r",$data['news_datestamp'])."</pubDate>\n";
   echo "<guid>".stripslashes(htmlspecialchars($settings['siteurl']."news.php?readmore=".$data['news_id']))."</guid>\n";
    echo "</item>\n\n";
}
echo "</channel>\n";
echo "</rss>";
?>
Edited by Kvido on 10-02-2010 11:54,
0 replies
K
Kvido
K
Kvido 10
Linux-Ubuntu 09.03.60, Linux/Ubuntu, PHP5, HTML5, Mozilla-Firefox 3.6.3, Opera 10.51, IE 8.0.6
https://www.nekecamweb.cz
  • Senior Member, joined since
  • Contributed 524 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
answered
Senior Member

Anyone? In the declaration missing a stupid, entity, etc. ..? God, you are all like me llama?

Firefox: http://www.pc-politika.cz/feeds/news.php OK!!!

IE 8: http://www.pc-politika.cz/feeds/news.php erorrs!!!
0 replies
K
Kvido
K
Kvido 10
Linux-Ubuntu 09.03.60, Linux/Ubuntu, PHP5, HTML5, Mozilla-Firefox 3.6.3, Opera 10.51, IE 8.0.6
https://www.nekecamweb.cz
  • Senior Member, joined since
  • Contributed 524 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
answered
Senior Member

Resolved!!

Oh people --- it was in error encoding, it must be Windows-1250?

Does IE8 have also !!!!!

http://www.pc-politika.cz/feeds/news.php
Edited by Kvido on 11-02-2010 10:20,
0 replies

Category Forum

Post Your Site

Labels

None yet

Statistics

  • Views 0 views
  • Posts 3 posts
  • Votes 0 votes
  • Topic users 1 member

1 participant

K
K
Kvido 10
Linux-Ubuntu 09.03.60, Linux/Ubuntu, PHP5, HTML5, Mozilla-Firefox 3.6.3, Opera 10.51, IE 8.0.6
https://www.nekecamweb.cz
  • Senior Member, joined since
  • Contributed 524 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet