Cgi - Perl

Status
Not open for further replies.

isaak9860

New Member
Messages
2
Reaction score
0
Points
0
How do I get cgi files up and running once their uploaded to the cgi-bin folder?
 

dlukin

New Member
Messages
427
Reaction score
25
Points
0
1. Upload in ASCII/text mode (not binary) especially if written on a Windows system
2. chmod/set permissions to 0755
3. Shebang line of:

#! /usr/bin/perl

4. Before body of the page, output header:

print "Content-type: text/html\n\n";

5. A friend taught me to add:

use CGI::Carp qw(fatalsToBrowser);
 
Status
Not open for further replies.
Top