Click to See Complete Forum and Search --> : Newbe help


dogtown08
01-15-2003, 12:19 AM
I am a complete newbe to writing my own cgi scripts. Can someone please tell me what is wrong with this code?

#!/usr/bin/perl
print "Hello, I want this to work\n";

I saved this in a program called "editPlus" as test.pl and uploaded it using frontpage 2002 in my cgi-bin directory, and I am sure the path to perl is correct.

I am always getting that 500 messege

Thanks.

Charles
01-15-2003, 05:54 AM
1 - Contact your server folks and make sure that the first line is correct.

2 - Make sure that you've set the file permissions correctly.

3 - Try something more like:

#!usr/local/bin/perl
use CGI qw(header start_html end_html h1);
print header, start_html(-title=>'My First Script'), h1('Hello, World'), end_html;

pyro
01-15-2003, 08:19 AM
Originally posted by dogtown08
and uploaded it using frontpage 2002 in my cgi-bin directoryYou need to upload in ASCII mode. I'm not sure, but I don't think you can do that in FrontPage.