|
Demo16: File Upload CGI Script | home
CGI/PERL Script | Sample CGI/PERL Script | Files Included | Editing "file-upload.cgi" | Move 'em up! | Set Permissions | Build input screen | Try it out
|
||
|
|
CGI/PERL Script
You need to verify two things with your web provider:
Version & location of the PERL Interpreter
Is PERL available, and if so, which version, and where is it located?
PERL is an interpreter, not a compiler.
So it is much like the old MS-DOS Basic Interpreter.
Both Perl 4 and Perl 5 are in common use.
The first line in a PERL script usually identifies the PERL interpreter you wish to use,
so you will see something like this:
#!/usr/local/bin/perl
Location to store CGI/PERL Scripts
Most web providers will automatically provide you
with a directory on your web site called "cgi-bin"
By default, this is where one would normally place CGI/PERL scripts.
You may need to check with your web provider.
If there is not such a directory, you are probably best served
by putting the files in your root or home directory of your web site.
|
|