Author |
Message |
interchange
Joined: 16 Jan 2008
Posts: 13
|
Posted: Tue Aug 20, 2013 1:58 pm |

|
Well it had to happen. All these years (6) and RSS to HTML converter has been working fine. Now our server has been updated to PHP 5.4.17 and lo it no longer works. It doesn't seem able to parse the info onto the page.
Might there be an update to the software?
Best regards.
|
|
|
 |
 |
Tech Support
Joined: 27 Aug 2004
Posts: 2692
|
Posted: Tue Aug 20, 2013 3:54 pm |

|
|
 |
 |
interchange
Joined: 16 Jan 2008
Posts: 13
|
Posted: Wed Aug 21, 2013 2:01 am |

|
Thanks for the quick reply.
The RSS2HTML.php shows v3.13 2008/10/18
The FeedForAll_XMLParser.inc.php shows Revision 3.19 2008/10/18
|
|
|
 |
 |
interchange
Joined: 16 Jan 2008
Posts: 13
|
Posted: Wed Aug 21, 2013 4:50 am |

|
Further to my last posting I decided to download the latest versions of RSS2HTML.php (version 3.15 2010/03/16 ) and FeedForAllParser.inc.php (version 3.24 2010/03/16) (Hope these are in fact the latest versions!!)
Unfortunately, although they work in as much as they grab the info the problem is that they will not parse (include) the info on the web pages. It would seem that, like a number of service providers, they have set the allow url fopen and allow url include PHP directives to off. And they aint prepared to switch them on. They say this is done to prevent "PHP include" hacker attacks. Internal 'include' commands work fine its when you try to include from a remote server.
I have switched the server back to PHP 4 and of course it works great but unfortunately PHP4 will be removed at the end of the month leaving only PHP5.4.17
So, are there any other commands that can be used instead of:
include("http://xxxx.com/rssbuild/rss2html.php?XMLFILE=http://feeds.xxxxx.co.uk/news/uk/rss.xml&TEMPLATE=http://www.xxxxxx.com/rssbuild/template.html");
?>
and
$XMLFILE = "http://feeds.xxxxx.co.uk/news/uk/rss.xml";
$TEMPLATE = "http://www.xxxxxxx.com/rssbuild/template.html";
include("rss2html.php");
?>
Best regards.
|
|
|
 |
 |
interchange
Joined: 16 Jan 2008
Posts: 13
|
Posted: Thu Aug 22, 2013 2:18 pm |

|
Success!!
Got everything back to normal and everything is now working okay!
It turned out to be quite a simple process to get it all to work again. If anyone is interested here is what I did:
First of all I made sure I was using the latest version of RSS2HTML software!!
I did a test to see if "allow url fopen" and "allow url include" were set to ON or OFF. To do this I simply created a new htm page, in Dreamweaver, put this code between the tags
saved the file as somename.php (or save it as an htm file and just change the file extension to .php later ). Upload it to the web site and access it through the web browser. It will show all the info about what version of PHP you are running and more importantly it shows if "allow url include" and "allow url include" are on or off. Apparently they are usually set to ON. Mine was. So the reason why they appear to be OFF is because of the php.ini file on the server which overrides it. So the php.ini file needs changing. Unfortunately there is no access to it, however on some servers, mine included, you can create your own php.ini file and it wiil override the main ini file on the server.
To do this simply open your favorite text program and type this on a new page:
allow_url_fopen = ON
allow_url_include = ON
Save the file as "php.ini" and upload a copy of it to every directory and sub directory on your site that has page files that you are parsing the rss feeds onto.
It works for me.
Regards.
|
|
|
 |
 |
Tech Support
Joined: 27 Aug 2004
Posts: 2692
|
Posted: Thu Aug 22, 2013 2:40 pm |

|
|
 |
 |
parlour824
Joined: 23 Oct 2013
Posts: 1
|
Posted: Wed Oct 23, 2013 4:49 am |

|
I am doing example3 + multi rss feed.
only the problem that i have been having is one of the feed is in UTF-8, and others are in Shift-JIS. Is there a way to display both of them at the same time?
|
|
|

|
 |
Tech Support
Joined: 27 Aug 2004
Posts: 2692
|
Posted: Wed Oct 23, 2013 7:35 am |

|
|
 |
 |
|