FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 PHP 5.4.17 View next topic
View previous topic
Post new topicReply to topic
Author Message
interchange



Joined: 16 Jan 2008
Posts: 13

PostPosted: Tue Aug 20, 2013 1:58 pm Reply with quoteBack to top

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.
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2782

PostPosted: Tue Aug 20, 2013 3:54 pm Reply with quoteBack to top

What is the date of the rss2html.php file you're currently using?

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
interchange



Joined: 16 Jan 2008
Posts: 13

PostPosted: Wed Aug 21, 2013 2:01 am Reply with quoteBack to top

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
View user's profile
interchange



Joined: 16 Jan 2008
Posts: 13

PostPosted: Wed Aug 21, 2013 4:50 am Reply with quoteBack to top

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:

<?php
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

<?php
$XMLFILE = "http://feeds.xxxxx.co.uk/news/uk/rss.xml";
$TEMPLATE = "http://www.xxxxxxx.com/rssbuild/template.html";
include("rss2html.php");
?>


Best regards.
View user's profile
interchange



Joined: 16 Jan 2008
Posts: 13

PostPosted: Thu Aug 22, 2013 2:18 pm Reply with quoteBack to top

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 <body> </body> tags

<?php phpinfo() ?>

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.
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2782

PostPosted: Thu Aug 22, 2013 2:40 pm Reply with quoteBack to top

Thank you for the updates and the solution. We greatly appreciate this style of post.

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
parlour824



Joined: 23 Oct 2013
Posts: 1

PostPosted: Wed Oct 23, 2013 4:49 am Reply with quoteBack to top

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?
View user's profileVisit poster's website
Tech Support



Joined: 27 Aug 2004
Posts: 2782

PostPosted: Wed Oct 23, 2013 7:35 am Reply with quoteBack to top

Unfortunately, no. All of the feeds need to be in UTF-8, otherwise they won't be translated or displayed properly.

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic


Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme