Download Perl Scripts

Random Text 1.0Random Text - $0.00 Version 1.0
Add to Cart



back
download
support
RSS Feed
_______________________________________

RandomText by CrookedBush.com Inc.
Intelliscript.net
(c) 2000-2003 Jason Silver

_______________________________________
Thanks for Registering!


Report any bugs to jasonsilver@crookedbush.com.

Yours,
Jason Silver

_______________________________________
Overview:
--------

Place Random quotes, quips, jokes, phrases, or HTML clips
anywhere within your page content.

_______________________________________
Installation Overview:
-----------------------

1. Setting some options at the beginning of the script files (*.pl)
2. Using FTP to upload all the files
3. Setting permissions on the files
4. Testing the script

_______________________________________
Here's How!
-----------

1. Using a text editor like textpad, or notepad, open the .pl script
Change the path to perl so that it's configured for your server.
It's usually:
#!/usr/local/bin/perl
or
#!/usr/bin/perl

Make changes to the variables at the top as well:
$html_start = "<b>"; # is always displayed at the beginning of the quote
$html_end = "</b>"; # is always displayed at the end of the quote
$random_file = "random_text.txt"; # the file in which all of your random text phrases are stored.
$delimiter = "\n\%\%\n"; # separates each group of html or quotes

Also place your quotesin the random_text.txt file.

2. Use an FTP program like WS_FTP or CuteFTP (just some examples I'm aware of) and
upload the files to your server.
It's easiest to put everything in the CGI-BIN.

3. Set permissions (CHMOD) on the *.pl file so it's executable. (755).
The owner should be able read, write, and execute.
The group should be able to read, and execute.
Also, other should be able to read, and execute.

Set permissions on the text file, and the content folder so it's editable.
(This is 777).
The owner should be able read, write, and execute.
The group should be able read, write, and execute.
Also, other should be able to read, write, and execute.

4. Insert the following into a text file and rename it to test.shtml:
<!--#exec cgi="/cgi-bin/random_text.pl"-->

5. Place the above HTML clip in any page that you want a random quote.
Be sure the page has a Server Side Include extension (.shtml), or
that you have enabled SSI on all html pages. You may need your site
administrator to enable this feature.

That's it! You're set! Let me know if you have problems.

Yours,
Jason Silver

_______________________________________
www.CrookedBush.com




 
top next download faq purchase xml pad file RSS Syndication OPML List - All Programs



[admin]

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

In the Spotlight

Arranged Blind Dates $0.00
Add to Cart
 When moving a web site to a new server, you may now easily preserve file dates in the transfer. Especially when using Blosxom, which organizes blogs by filedate, it is important to maintain this date information.
[more & download links]

What People Say

Crossword $5.00
Add to Cart Your script looks nice up at my site and I am sure will be an awesome addition. Thanks for providing such a wonderful script! It will be well-used over at http://www.theenglishmaster.com/! Drop on by some time! Sincerely,
Steve StegemanI installed this on my teen web site but could not get the thing working. He went in and fixed my mistakes and it works great now. Me and my wife love playing each other and i have had some teens play a few games they all like it alot.. Now i need more games to install.. If you want to test the script out you can test it on my www site. http://www.teenforumz.org

[more & download links]

Post Page Comment