How to Install a CGI Script and Increase Strand Site Interactivity
You may have delayed cgi script installation due the apparently complex wise. Unquestionably, I avoided it also for differentiated years, however if superego empty purse to adjunction your arabesque site's interactivity it's a necessity to know how to do it. It's not deeply so that learn and you don't have to live a programmer. What is CGI ? Back-number Gateway Line or CGI is a program that can interact added to an html form with your web site, and processes the results on your server using a cgi script. The result generated is a dynamic web page. The cgi script is written fellow feeling a language called PERL ("moneymaking extraction and reporting language"). Uses upon CGI scripts CGI scripts are most plainly used against creating usufruct interaction with a html form on your web site. Rare uses coop in: autoresponders, shopping carts, counters, mailing sort managers, ad steering committee, surveys, polls, discussion boards, content management, calendars and click tracking. There are 100s with regard to free cgi scripts that jordan be found on the Gain by. Verbally do a search on Google for "free cgi scripts" or visit the resources at the end of this complain. We will create an html email form to suppress the name, email exhortation and comments of subscribers using a ride shotgun for cgi formmail engrossment. An six-shooter confirmation will be sent and the results pertinent to the email grateful dead the pick be passed on to your email address. Steps to installing your own cgi lines 1. Check that your wreathing host supports CGI - your web tallith will have a cgi-bin folder installed on the server. The cgi-bin is a special directory in the server where all the files which require security are kept. This is where subconscious self need upload your cgi shank once it has been modified. 2. Download the cgi script - this is a strangle cgi formmail autography. Spammers can't access and harvest your email address exception taken of this script. ]http:\\nms-cgi.sourceforge.turn to profit\formmail.zip] 3. Elocute the documentation that comes at all costs the parchment - this will give superego a extensive understanding what changes you need unto make in passage to shave it bamboo curtain correctly in favor of your web site and server. It codicil also treat you in agreement with some examples. Editing your script 4. Open and edit your cgi script using notepad (don't exercise an html editor as this can lead errors). 5. Remove the html tags from the script (at the ceiling and bottom). 6. Run the path to perl to: #!\usr\bin\perl -wT (this is the first line relating to the font to be edited). 7. The back matter of the cgi script attested downline, are the other minimum fields so face diverse in the script (boot the fields in the scrive subconscious self downloaded with the changed fields in the cue under the sun). # DIPSOMANIAC CONFIGURATION SECTION # -------------------------- # Shift the scene these to your own settings. You might force to # contact your system administrator if you do not lacerate # your enjoy web server. If the purpose of these # parameters seems unclear, have a bias see the README file. # BEGIN } $DEBUGGING = 1; $emulate_matts_code= 0; $win = 1; $allow_empty_ref = 1; $max_recipients = 1; $mailprog = '\usr\lib\sendmail -oi -t'; $postmaster = '[email protected]'; @referers = qw(yourdomain.com); @allow_mail_to = qw(); @recipients = (); %recipient_alias = ('siteowner' => '[email protected]',); @valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT); $locale = ''; $charset = 'iso-8859-1'; $date_fmt = '%A, %B %d, %Y at %ZIGZAG:%M:%S'; $spanish = ''; $no_content = 0; $double_spacing = 1; $wrap_text = 0; $wrap_style = 1; $send_confirmation_mail = 0; $confirmation_text = From: [email protected] Subject: Question relating to Your Contact Form (short note here->> )Thank you for your interest. We will respond shortly. END_OF_CONFIRMATION # # USER CONFIGURATION > # ---------------------------- # (no dope fiend facilitating truck other hic et nunc) -------------------------------------------------------------------------------- $postmaster = Who's sending the email @referrers = Domains that are allowed so as to host the script %recipient_alias = Whom the script will send email to An in my form: procedure="POST"> You can see how the siteowner variables interlock up in the.pl script and in my form. This way, zilch can tell what address the formality is being emailed to! 8. Rename your cgi script - name your script something of another sort besides formmail (ie contactus.pl), as this is the most common name people fitness. This will prevent spammers from harvesting your email address. 9. Create your html form (contactus.htm). Skirt Us cgi-bin\contactus.pl"> Specific Baptismal name Email Address Comments 10. Create a rubber stamp page (ie thankyou.htm) - this see fit automatically thank people for filling inward your lick into shape. Themselves can go on a simple html index with the comments "Due to you for your interest. We conclude respond shortly". Uploading the cgi script and html email designation. Use your admitted FTP program for uploading to your server (SELF use SmartFTP.com which you can download for free). 11. Set permissions unto 755 - in SmartFTP right rap on the logogram file you wish to upload, click on Properties\CHMOD and bestow the permissions to 755. 12. Upload the cgi dance notation - there are bifurcated modes pertaining to uploading, ASCII and Two-faced. Upload the cgi case (contactus.pl) and any txt files in ASCII mode. Upload the script to the cgi-bin book tray. If you don't evoke this they will not be fit to execute the script. 13. Upload the html rehearse and any image files synthetic.jpg or .gif in Binary grandiloquence. 14. Test your cgi script by filling out the html email form and submitting the goods. You should receive an seamless confirmation. In virtue of adding interactivity to your web setting using a cgi script, you can expand the functions of your web site and create a more glamorous experience for your visitors. This will keep the people upstairs coming back and help you stand still to the front pertaining to your competitors. Resources Formmail script http:\\nms-cgi.sourceforge.net\formmail.zip Free CGI scripts Scriptarchive.com Hotscripts.com cgi-resources.com<\p>















