|
|
 |
Configuring Your CGI Scripts
You can upload your scripts into any directory, so long as you have requested that CGI
scripting be enabled for your site. Contact the Tivilon Support
Team to get the proper permissions set up on your account. There
is no additional charge for Tivilon to activate CGI scripting on your web site.
When you upload your scripts, do so in ASCII format through FTP. You do not need to worry about changing the
permissions, otherwise known as "chmoding" the files. The proper permissions will be set
on your site, per your request (noted above).
Perl Configurations
- HTML Outputs: If your script outputs HTML, reference images/pages beginning with a slash "/"
- Perl Extensions: .pl or .cgi
- System Path to Your Site: E:\\Web\\NT#####\\members\\
- Path to Perl: /usr/bin/perl
- Path to Sendmail: See example below
Example:
use SendMail;
$AnyVariable = new SendMail("localhost");
$AnyVariable->To("email@domain.com");
$AnyVariable->From("sender@domain.com");
$AnyVariable->Subject("The E-Mail Subject");
$AnyVariable->setMailBody("E-Mail body content");
if ($AnyVariable->sendMail() != 0) {
print $AnyVariable->{'error'}."\n";
exit -1;
}
- Path to Date: See example below
Example:
# Get the Date for Entry
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
$monplus = $mon++;
@months = ("January","February","March","April","May","June",
"July","August","September","October","November","December");
@days = ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
$date = "$days[$wday], $months[$mon] $mday, 20$year at $hour:$min:$sec (ET)";
$shortdate = "$monplus $mday 20$year";
ASP Configurations
- Mail: Tivilon uses AspEmail, not CDONTS for ASP mail services (for more information on
AspEmail visit their web site)
|
|
|