Valuehost.com
06-22-2002, 02:42 AM
Please note that the major error you will see when calling your script will be the infamous "Premature end of script Headers" error.
To fix this, check the following:
- Make sure that you are calling Perl correctly (#!usr/bin/perl)
You will find this line usually at the very top of your script;
- Be sure that you uploaded your cgi script(s) in ASCII mode,
NOT binary. CGI scripts are text files that need to be uploaded in ASCII format;
- Be sure that you have changed file permissions to 'execute'
chmod 755 OR chmod 775 OR chmod 777;
- Make sure that you save your Perl script file as UNIX text format.
In MS-DOS (Windows) every string ends with 0A0D, in UNIX string ends with 0D only.
P.S.
How do I change UNIX file permissions?
http://www.geog.ox.ac.uk/faq/chmod.html
Sincerely,
Valuehost
To fix this, check the following:
- Make sure that you are calling Perl correctly (#!usr/bin/perl)
You will find this line usually at the very top of your script;
- Be sure that you uploaded your cgi script(s) in ASCII mode,
NOT binary. CGI scripts are text files that need to be uploaded in ASCII format;
- Be sure that you have changed file permissions to 'execute'
chmod 755 OR chmod 775 OR chmod 777;
- Make sure that you save your Perl script file as UNIX text format.
In MS-DOS (Windows) every string ends with 0A0D, in UNIX string ends with 0D only.
P.S.
How do I change UNIX file permissions?
http://www.geog.ox.ac.uk/faq/chmod.html
Sincerely,
Valuehost