Download Perl ScriptsBible in One Year - $0 Version 91002-1505
Add to Cart
demo/see it work
Bible in One Year by Intelliscript.net
(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 firstname.lastname@example.org.
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.
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
4. Test the script
See this page for more help:
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.
2. Change the variables,
$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 = "http://www.getchurch.org/cgi-bin/bible_in_one_year.pl";
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
NOW, TEST IT:
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.