Download Perl Scripts

Link Engine Link Engine - $0.00 Version
Add to Cart

demo/see it work
RSS Feed

LinkEngine by
(c) 2004,2005 Jason Silver


LinkEngine makes it easier to post outgoing links on your site via a web browser.

Report any bugs or improvement suggestions to

Jason Silver


How It Works:

Instead of manually editing an HTML when you want to add links, now you can do it from a browser.
Additionally, visitors can search your links, or you can sort them by categories.

LinkEngine is called from a server side include page, (extension .shtml). Depending on
how you ask for the script from this page, it will be displayed in one of three possible

1. Regular View
2. Plain View by Category
3. Random 'Link of the Day' view

1. To display the regular view (which is also searchable), use the following code:
<!--#include virtual="link_engine.cgi"-->

2. To display a plain view, by category, use the following code:
<!--#include virtual="link_engine.cgi/plain"-->

3. To show a random view, place this code somewhere in your page:
<!--#include virtual="link_engine.cgi/rand"-->

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

Here's How!

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

2. Change the variables,

For example,

$server_file = "link_database.txt";

The server file is where the links will be saved. CHMOD it 777.

$records_to_display = 15;

How many on one page before a next button appears?

$datapath = "";

This is the path to your server file.

$html_page = "/regular.shtml"; # for using Server Side Includes

This might be 'links.shtml' or 'link_page.shtml', it's up to you.

$script_url = "/cgi-bin/"; # for saving changes in admin panel.

URL to your script.

$default_search = "";

This search will be executed before results are displayed.

$default_category = "all";
$hide_descriptions = 1; # default
$url = $ENV{'SERVER_NAME'};

$login = 'admin';
$password = 'password';

This is for administration and adding of links.

$highlight_color = 'yellow';

For search results to be highlighted.

$display_categories = 1;

You can set this to 0 to opt out of the category display.

$menu_alignment = "right";

'right' or 'left'

$search_invitation = "Search for a link:";

You could change this to "Search our link database," or "Find a Link"

$search_each_word = 1;

Set this to 0 to only accept phrase searches.

$image_directory = "/images/";

This is a URL to where your images are stored.

$style = "font-family: Tahoma, Verdana; font-size: 8pt";

@common_words = ("a","at","be","do","for","how","to","the","so","my","but","is","it","on","this","i"); # filtered from search

These words are filtered and not searched.

3. To adminsitrate, open the file with ?login=1 at the end like this:

4. If you wish, Open the header.txt and footer.txt file and paste in header and footer
content from your main site so that the pages look like they belong to the
style used in other parts of your site.

5. 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.

6. Set permissions (CHMOD):
.pl files: 755
.txt files: 777, or 766 if 777 is not allowed.


7. From a browser type:

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


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


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

In the Spotlight

Crossword $5.00
Add to Cart
 Allow your users to play this Scrabble(c)-style game on your site. Not only will they enjoy playing with other gamers all over the world, but the game emails sent on each move contain your customised advertisment. Get the 'word' out to people while they have fun!
[more & download links]

What People Say

iTreePad $0
Add to Cart Itreepad_plus installed easily and was up an running in a couple minutes, however it does not do anything with rtf messages which made it almost useless.
(Editor.: Actually, it does show basic RTF, but you need to save your iTreePad in the html format before uploading.)

[more & download links]

Post Page Comment