kiwibrit
08-05-2007, 05:48 AM
I use PHP, so I am unfamiliar with Perl, but I thought I would have a go to get myself familiar with using cgi.
From CGI101.com (http://www.cgi101.com/book/ch1/text.html) I came across this script
#!/usr/bin/perl -wT
print "Content-type: text/htmlnn";
print "Hello, world!n";
I wrote the script in Notepad, and FTPd it to http://www.castlehillclub.com/first.cgi and gave it chmod 755.
From my web host control panel:
Path to Perl: /usr/bin/perl
Perl modules: All standard Perl modules, including DBI, are installed.
Perl version: 5.8.5 (patched)
In FF2 I get a blank screen - and in IE7 I get a 403. What's gone wrong?
From CGI101.com (http://www.cgi101.com/book/ch1/text.html) I came across this script
#!/usr/bin/perl -wT
print "Content-type: text/htmlnn";
print "Hello, world!n";
I wrote the script in Notepad, and FTPd it to http://www.castlehillclub.com/first.cgi and gave it chmod 755.
From my web host control panel:
Path to Perl: /usr/bin/perl
Perl modules: All standard Perl modules, including DBI, are installed.
Perl version: 5.8.5 (patched)
In FF2 I get a blank screen - and in IE7 I get a 403. What's gone wrong?