FeedForAll Forum Index ?
?Home?????FAQ????? Search ?????Memberlist ?????Register ?????Profile? ????Log in
?Editing rss2htmlv2.0,right file permissions and subdirectory View next topic
View previous topic
Post new topicReply to topic
Author Message
jim8



Joined: 28 Dec 2005
Posts: 22

PostPosted: Mon Jan 02, 2006 11:25 pm Reply with quoteBack to top

Hello,
According to your instruction on using your rss2html it mentions Running rss2html.php from your own webserver. In regards to the second option it says,"The second option is to edit the settings inside of the rss2html.php script itself, and then just access the script as if it were a regular webpage.

With a text editor open up the rss2html.php file. Look for the line near the beginning that looks like this:

$XMLfilename = "sample.xml";

Replace sample.xml with either the local path or full URL to your RSS feed file.
Ok, up to here no problem.

Next, find the line that looks like this:

$TEMPLATEfilename = "BasicWebpage.htm";

Replace BasicWebpage.htm with either the local path or full URL to your template file.
Can't find the BasciWebpage.htm did you mean $TEMPLATEfilename = "sample-template.html";

Finally, if you want to specify the maximum number of items to include from your feed, find the line that looks like this:

$FeedMaxItems = 10000;

Replace 10000 with the maximum number of items you want.

Save the file with a new name (what you want to call it on your website), but make sure to keep the .php extension.
Ok, no problem up to here.

Another question I have is that you show that all the files are in the root directory if I want to create a subdirectory do you see any problems.

Also can you tell me what are the correct file permissions to use for all the files and folders(directory) to use.
thank you for your help and time to this matter.
View user's profileSend private message
MacSupport



Joined: 24 Feb 2005
Posts: 1370

PostPosted: Tue Jan 03, 2006 12:17 am Reply with quoteBack to top

jim8 wrote:
Hello,
According to your instruction on using your rss2html it mentions Running rss2html.php from your own webserver. In regards to the second option it says,"The second option is to edit the settings inside of the rss2html.php script itself, and then just access the script as if it were a regular webpage.

With a text editor open up the rss2html.php file. Look for the line near the beginning that looks like this:

$XMLfilename = "sample.xml";

Replace sample.xml with either the local path or full URL to your RSS feed file.
Ok, up to here no problem.

Next, find the line that looks like this:

$TEMPLATEfilename = "BasicWebpage.htm";

Replace BasicWebpage.htm with either the local path or full URL to your template file.
Can't find the BasciWebpage.htm did you mean $TEMPLATEfilename = "sample-template.html";

Finally, if you want to specify the maximum number of items to include from your feed, find the line that looks like this:

$FeedMaxItems = 10000;

Replace 10000 with the maximum number of items you want.

Save the file with a new name (what you want to call it on your website), but make sure to keep the .php extension.
Ok, no problem up to here.

Another question I have is that you show that all the files are in the root directory if I want to create a subdirectory do you see any problems.

Also can you tell me what are the correct file permissions to use for all the files and folders(directory) to use.
thank you for your help and time to this matter.


You can use files in any directory as long as they are in the same directory as rss2html.php or a subdirectory of that directory. This is to prevent rss2html.php from reading arbitary files on the server.

Files 0644 is a good permission, and 0755 for directories.

Jim
View user's profileSend private messageVisit poster's website
jim8



Joined: 28 Dec 2005
Posts: 22

PostPosted: Tue Jan 03, 2006 12:38 am Reply with quoteBack to top

Hello MacSupport,
Thanks for your fast reply I will make the changes on the file permissions. I was wonder what about when doing a search in the rss2html I could not find the $TEMPLATEfilename = "BasicWebpage.htm"; to edit. Was there a typo error in the instructions and should be sample-template.html?
Thank you
View user's profileSend private message
MacSupport



Joined: 24 Feb 2005
Posts: 1370

PostPosted: Tue Jan 03, 2006 1:10 am Reply with quoteBack to top

jim8 wrote:
Hello MacSupport,
Thanks for your fast reply I will make the changes on the file permissions. I was wonder what about when doing a search in the rss2html I could not find the $TEMPLATEfilename = "BasicWebpage.htm"; to edit. Was there a typo error in the instructions and should be sample-template.html?
Thank you


Yes it should be .html, the instructions were done by a windows person that is still stuck in 8.3 filenaming.

Jim
View user's profileSend private messageVisit poster's website
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