How to Install a CGI Script and Increase Web Site Interactivity

Written by Herman Drost


Continued from page 1

(short note here->> )Thank you for your interest. We will respond shortly.

END_OF_CONFIRMATION # # USER CONFIGURATION << END >> # ---------------------------- # (no user serviceable parts beyond here) --------------------------------------------------------------------------------

$postmaster = Who's sendingrepparttar email @referrers = Domains that are allowed to hostrepparttar 134396 script %recipient_alias = Whomrepparttar 134397 script will send email to

In my form:

You can see howrepparttar 134398 siteowner variables match up inrepparttar 134399 .pl script and in my form. This way, nobody can tell what addressrepparttar 134400 form is being emailed to!

8. Rename your cgi script - name your script something else besides formmail (ie contactus.pl), as this isrepparttar 134401 most common name people use. This will prevent spammers from harvesting your email address.

9. Create your html form (contactus.htm).

Contact Us< itle> </head> <body bgcolor="#FFFFFF" text="#000000"> <form method="post" action="http://www.yourdomain.com/ cgi-bin/contactus.pl"> <input type=hidden name="recipient" value="siteowner"> <input type=hidden name="subject" value="Subscribe Me Please"> <input type=hidden name="required" value="fullname,email"> <input type=hidden name="redirect" value="http://www.yourdomainname.com hankyou.htm"> Full Name<p><input type=text name="fullname"><p> Email Address<p><input type=text name="email"><p><p>Comments<p><textarea name="comments">< extarea><p><p> <input type="submit" name="Submit" value="Submit"> </form> </body> </html><p>10. Create a confirmation page (ie thankyou.htm) - this will automatically thank people for filling in your form. It can be a simple html page with<IMG height=12 src="/the2.jpg" alt="repparttar 134402"> comments "Thank you for your interest. We will respond shortly".<p>Uploading<IMG height=12 src="/the2.jpg" alt="repparttar 134403"> cgi script and html email form.<p>Use your favorite FTP program for uploading to your server (I use SmartFTP.com which you can download for free).<p>11. Set permissions to 755 - in SmartFTP right click on<IMG height=12 src="/the2.jpg" alt="repparttar 134404"> script file you wish to upload, click on Properties/CHMOD and set<IMG height=12 src="/the2.jpg" alt="repparttar 134405"> permissions to 755.<p>12. Upload<IMG height=12 src="/the2.jpg" alt="repparttar 134406"> cgi script - there are two modes of uploading, ASCII and Binary. Upload<IMG height=12 src="/the2.jpg" alt="repparttar 134407"> cgi script (contactus.pl) and any txt files in ASCII mode. Upload<IMG height=12 src="/the2.jpg" alt="repparttar 134408"> script to<IMG height=12 src="/the2.jpg" alt="repparttar 134409"> cgi-bin folder. If you don't follow this you will not be able to execute<IMG height=12 src="/the2.jpg" alt="repparttar 134410"> script.<p>13. Upload<IMG height=12 src="/the2.jpg" alt="repparttar 134411"> html form and any image files like .jpg or .gif in Binary mode.<p>14. Test your cgi script by filling out<IMG height=12 src="/the2.jpg" alt="repparttar 134412"> html email form and submitting it. You should receive an immediate confirmation.<p>By adding interactivity to your web site using a cgi script, you can expand<IMG height=12 src="/the2.jpg" alt="repparttar 134413"> functions of your web site and create a more interesting experience for your visitors. This will keep them coming back and help you stay ahead of your competitors.<p>Resources<p>Formmail script http://nms-cgi.sourceforge.net/formmail.zip<p>Free CGI scripts Scriptarchive.com Hotscripts.com cgi-resources.com <br><img src="images/ata.gif"><br> <p>Herman Drost is the Certified Internet Webmaster (CIW) owner and author of iSiteBuild.com Affordable Web Hosting Plans from $30/year http://www.isitebuild.com/sitehosting Subscribe to his insightful “Marketing Tips” newsletter for more original articles. mailto:subscribe@isitebuild.com <br><br><br></font></td><!-- google_ad_section_end --><!-- google_ad_section_start(weight=ignore) --><td align="top" width="10%"></td><td align="top" width="45%"><h2>How Multiple Server Hosting impacts your website's uptime</h2><font size="2">Written by Godfrey Heron</font><br><br><script type="text/javascript"><!-- google_ad_client = "pub-5766870852072819"; google_ad_width = 234; google_ad_height = 60; google_ad_format = "234x60_as"; google_ad_channel ="9238851329"; google_color_border = "CFB9A1"; google_color_bg = "CFB9A1"; google_color_link = "000000"; google_color_url = "431B02"; google_color_text = "431B02"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <font size="2"><br>Continued from page 1<br><p>However,<IMG height=12 src="/the2.jpg" alt="repparttar "> round robin DNS strategy solves this predicament, by mapping your domain name to more than one IP address.<p>Select hosting companies now employ<IMG height=12 src="/the2.jpg" alt="repparttar 134395"> DNS round robin technique in conjunction with'failover monitoring'.<p>The DNS round robin failover monitoring process starts by a web hosting company setting up your site on two or more independent web servers (preferably with different IP blocks assigned to them). Your domain name will therefore have 2 or more IP Addresses assigned to it.<p>Then<IMG height=12 src="/the2.jpg" alt="repparttar 134396"> failover monitor watches your web server(s) by dispatching data to a URL you specify and looking for particular text in<IMG height=12 src="/the2.jpg" alt="repparttar 134397"> results. When<IMG height=12 src="/the2.jpg" alt="repparttar 134398"> system detects that one of your IP addresses is returning an error, and<IMG height=12 src="/the2.jpg" alt="repparttar 134399"> others aren't, it pulls that IP address out of<IMG height=12 src="/the2.jpg" alt="repparttar 134400"> list. The DNS then points your domain name to<IMG height=12 src="/the2.jpg" alt="repparttar 134401"> working IP address/s<p>If any of your IP's come back online they are restored to<IMG height=12 src="/the2.jpg" alt="repparttar 134402"> IP pool. This effectively and safely keeps your site online – even if one of your web servers is down. <p>The average failure detection and recovery time with a system like this can be as low as 15 minutes. This time varies depending on<IMG height=12 src="/the2.jpg" alt="repparttar 134403"> speed of your site and<IMG height=12 src="/the2.jpg" alt="repparttar 134404"> nature of<IMG height=12 src="/the2.jpg" alt="repparttar 134405"> failure and also how long other ISP's cache (save) your DNS information.<p>The time taken for other ISP's caching your information can be manipulated in<IMG height=12 src="/the2.jpg" alt="repparttar 134406"> failover monitor by lowering<IMG height=12 src="/the2.jpg" alt="repparttar 134407"> "time to live" (TTL) cache settings. These are<IMG height=12 src="/the2.jpg" alt="repparttar 134408"> settings that other ISP's will use to determine how long to cache your DNS information.<p>Of course you must bear in mind<IMG height=12 src="/the2.jpg" alt="repparttar 134409"> matter of how frequently data is synchronized between your website's servers. This will be<IMG height=12 src="/the2.jpg" alt="repparttar 134410"> hosting company's responsibility, and this may become complicated where databases and user sessions are involved. <p>The very expensive hardware based failover monitoring systems that point a virtual IP address to other ISP's, while behind<IMG height=12 src="/the2.jpg" alt="repparttar 134411"> scenes juggling a number of unique IP addresses on different servers, is of course<IMG height=12 src="/the2.jpg" alt="repparttar 134412"> most 'elegant' solution to multi server hosting. <p>That way,<IMG height=12 src="/the2.jpg" alt="repparttar 134413"> whole issue of ISP's caching your information does not come into play.<p>Therefore, for site's that need to have true 99.99995% uptime, without huge outlays of money,<IMG height=12 src="/the2.jpg" alt="repparttar 134414"> technology is readily available and certain proprietory failure monitoring systems are now relatively cheap to apply.<p> <br><img src="images/ata.gif"><br> <p>Godfrey Heron is the Website Manager of the Irieisle Multiple Domain Hosting Services company.Signup for your free trial, and host multiple web sites on one account: http://www.irieisle-online.com <br><br><br></font></td><!-- google_ad_section_end --></tr><tr><td>    <a class="mlink" href="How_to_Install_a_CGI_Script_and_Increase_Web_Site_Interactivity-34396.htm"><</a>Back to Page 1</td></tr></table><script type="text/javascript"><!-- google_ad_client = "pub-5766870852072819"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_channel ="8831454965"; google_color_border = "CFB9A1"; google_color_bg = "CFB9A1"; google_color_link = "000000"; google_color_url = "431B02"; google_color_text = "431B02"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> </table> <table width="770" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> <tr> <td height="48" align="center" background="images/bg_nav_bottm.jpg"><span class="style3">ImproveHomeLife.com © 2005<br> <a href="terms.html" rel="nofollow">Terms of Use</a></span></td> </tr> </table></td> </tr> </table> <script type="text/javascript"> var HASH_ESCAPED="%23"; function TrackIt(adUnit){ if (window.status) { var adDomain = escape(window.status.substring(6)); var pyPage = document.location.pathname; var params = document.location.search; var hasAnchor = params.lastIndexOf(HASH_ESCAPED)!= -1; params = hasAnchor? (params.substring(0, params.lastIndexOf(HASH_ESCAPED))) : params; pyPage = escape(pyPage.substring(pyPage.lastIndexOf('/') + 1)); pyPage = pyPage + params; var curTime = new Date().valueOf(); var bug = new Image(); bug.src = '/track/adsenseTrack.php?pyPage=' + pyPage + '&adDomain=' + adDomain + '&adUnit=' + adUnit + "&time=" + curTime; } } function TrackIt0() {TrackIt(0); } function TrackIt1() {TrackIt(1); } function TrackIt2() {TrackIt(2); } var elements = document.getElementsByTagName("iframe"); for (var i = 0; i < elements.length; i++) { if(elements[i].src.indexOf('googlesyndication.com') > -1) { //elements[i].onfocus = TrackIt; if (i==0) elements[i].onfocus = TrackIt0; if (i==1) elements[i].onfocus = TrackIt1; if (i==2) elements[i].onfocus = TrackIt2; } } </script> <!--WEBBOT bot="HTMLMarkup" startspan ALT="Site Meter" --> <script type="text/javascript" language="JavaScript">var site="s19improve"</script> <script type="text/javascript" language="JavaScript1.2" src="http://s19.sitemeter.com/js/counter.js?site=s19improve"> </script> <noscript> <a href="http://s19.sitemeter.com/stats.asp?site=s19improve" target="_top"> <img src="http://s19.sitemeter.com/meter.asp?site=s19improve" alt="Site Meter" border=0></a> </noscript> <!-- Copyright (c)2002 Site Meter --> <!--WEBBOT bot="HTMLMarkup" Endspan --> </body> </html>