Jump to content

Recommended Posts

Posted

Hello, all.

 

:)

 

I have found a cool CGI script online (freebie.) at http://scripts.cgi101.com/

 

I am looking at: generiform.cgi

 

I understand the "Optional Fields" part.

 

I do not understand all of the "Configure" part:

 

# use the usual modules

use strict;

use CGI;

use CGI::Carp qw(warningsToBrowser fatalsToBrowser);

my($cgi) = CGI->new;

 

# CONFIGURE: change this to the proper location of sendmail on your system:[/b]

my($mailprog) = '/usr/sbin/sendmail';

 

# Set the path, so taint mode won't complain. This should be the path

# that sendmail lives in! (If you're using /usr/lib/sendmail, then

# the path had better be /usr/lib here.)

$ENV{PATH} = "/usr/sbin";

 

# list of domains authorized to call this script: you really SHOULD set this

# to avert inappropriate use or spam.

my(@allowed_domains) =(".cgi101.com");

 

&chkdomain;

 

# do some error-checking.

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)");

 

Anyone who can send me to the correct information - or hold myhand through this!! :) Appreciate it!! I'm pretty resourcefull - links would be fine :)

 

Carrie

Posted

Most of the information you are looking for is on the cPanel front page of your web site.

 

Also, go to http://tch.kwsupport.com/tools.htm 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!

 

In fact, I have a link there so you can go ahead and run the copy on my web site!

 

HTH,

kw

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...