CGI Questions

liunx

Guest
Hello, all.<br /><br /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/blink.gif" style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" /> <br /><br />I have found a cool CGI script online (freebie.) at <a href="http://scripts.cgi101.com/" target="_blank">http://scripts.cgi101.com/</a> <br /><br />I am looking at: generiform.cgi<br /><br />I understand the "Optional Fields" part. <br /><br />I do not understand all of the "Configure" part: <br /><br /># use the usual modules<br />use strict;<br />use CGI;<br />use CGI::Carp qw(warningsToBrowser fatalsToBrowser);<br />my($cgi) = CGI->new;<br /><br /># CONFIGURE: change this to the proper location of sendmail on your system:[/B]<br />my($mailprog) = '/usr/sbin/sendmail';<br /><br /># Set the path, so taint mode won't complain. This should be the path<br /># that sendmail lives in! (If you're using /usr/lib/sendmail, then<br /># the path had better be /usr/lib here.)<br />$ENV{PATH} = "/usr/sbin";<br /><br /># list of domains authorized to call this script: you really SHOULD set this<br /># to avert inappropriate use or spam.<br />my(@allowed_domains) =(".cgi101.com"); <br /><br />&chkdomain;<br /><br /># do some error-checking.<br />my(%reqs) = ("send_to","the e-mail address to send the form data to (typically this is done via a hidden field in the form)");<br /><br />Anyone who can send me to the correct information - or hold myhand through this!! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Appreciate it!! I'm pretty resourcefull - links would be fine <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><br /><br />Carrie<!--content-->
Most of the information you are looking for is on the cPanel front page of your web site.<br /><br />Also, go to <a href="http://tch.kwsupport.com/tools.htm" target="_blank">http://tch.kwsupport.com/tools.htm</a> and download the env.zip file. It contains a free script (env.pl) that you simply upload to your web site and when you run it , it will give your more info that you probably will ever need!<br /><br />In fact, I have a link there so you can go ahead and run the copy on my web site!<br /><br />HTH,<br />kw<!--content-->
 
Back
Top