Download Perl Scripts

Bible in One Year 91002-1505Bible in One Year - $0 Version 91002-1505
Add to Cart

demo/see it work
RSS Feed

Bible in One Year by
(c) 2005 Jason Silver


Use this script to fetch from Gospelcom's Bible
The fetch is displayed as an RSS feed, or as HTML depending
how it's called in the URL.

Report any bugs or improvement suggestions to

Jason Silver


How It Works:

When this script is called, it uses LWP, a Perl module, to 'fetch' content from another
site, then reads and parses (tries to understand and process) this content.
The content can then be displayed in two different ways.

Installation Overview:
1. Set some options at the beginning of the script
2. Use FTP to upload the file
4. Set exectute permissions on the Perl script, and write permissions on the
text file
4. Test the script

See this page for more help:

Here's How!

1. Using a text editor like textpad, or notepad, open the .pl file(s)
Change the path to perl so that it's
configured for your server.
It's usually:

2. Change the variables,

For example,

$daily_info = "bible_daily_reading.txt";

This is the name of the file which contains the daily readings. The daily readings are separated by tabs.

$start_yearday = 1;

The reading will begin on January 1st. Change this number to start on a different year day.

$not_yet_phrase = qq~ If you're seeing this message, then there is something broken on the server. There should be an entry for every day of the year (except maybe Leap Year).~;

An error message you can customize. If there aren't enough readings, this will appear on the days without something to read.

$delimiter = "\n";

This is the delimiter between days... \n means new line.

$rss_link = "";

This is the link to the HTML version of the script on your server.

$rss_title = "The Bible in One Year";

This is a title for your RSS feed.

$rss_description = "Use this RSS feed to read through the Bible in a Year";

This is a description for your RSS feed.

$rss_language = "en";

This is the international two-letter symbol for the language you're reading.

$first_text_delimiter = '<!-- UNIQUE CONTENT -->';

This is the first item in the translation which is fetched. You don't need to change this.

$last_text_delimiter = '<!-- SIGNATURE -->';
$last_text_delimiter_2 = '<!-- INTERSITE -->'; # Another option in case some pages are different

You don't need to change these either.

3. Use an FTP program like WS_FTP or CuteFTP (just some examples I'm aware of)
and upload the files to your server's cgi-bin.

4. Set permissions (CHMOD):
.pl files: 755


7. From a browser, open the .pl file in 1 of these 2 ways:

You can also call it from a web page by inserting this in an html page right where you want it:
<!--#include virtual="/cgi-bin/bible_in_one_year.cgi" -->

If it doesn't work, trying changing the exenstion on your html page to .shtml.

As always, let me know of problems, questions, or requests for features.
Jason Silver


top next download demo/see it work xml pad file RSS Syndication OPML List - All Programs


FileCABINET Script - Create a File Download section on your site.

In the Spotlight

MP3 Database $0.00
Add to Cart
 An MP3 database script much like the service that used to be available to artists at It manages streaming, downloading, song history, story, lyrics, and more.
[more & download links]

What People Say

BookViewer Skins $0
Add to Cart Bookviewer is awesome. I bought it when there were just the two styles, burgundy and green. Now it's even better with all the different types of books! Great job.

[more & download links]

Post Page Comment