Download Perl Scripts

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



back
download
demo/see it work
RSS Feed
_______________________________________

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 jasonsilver@crookedbush.com.

Yours,
Jason Silver

_______________________________________
Overview:
--------

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:
http://www.intelliscript.net/install_help.shtml

_______________________________________
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:
#!/usr/local/bin/perl
or
#!/usr/bin/perl

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 = "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:
http://www.yoursite.com/cgi-bin/bible_in_one_year.pl/rss

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


_______________________________________
www.CrookedBush.com




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



[admin]

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

In the Spotlight

Intelliscript Submit Form Mailer $0.00
Add to Cart
 This script is a simple form processor which will email the contents of any web form directly to you. It's easy to set up and use.
[more & download links]

What People Say

Crossword $5.00
Add to Cart I really like the new feature to adjust the score and it works much better as well.. Thanks for the updates on that!
Marie Alline
[more & download links]

Post Page Comment