View previous topic :: View next topic |
Author |
Message |
Mikor -
Joined: 21 Aug 2006 Posts: 144 Location: Hull, England
|
Posted: Thu Aug 24, 2006 11:07 am Post subject: Internal Server Error |
|
|
Here is my Perl code, I just get an internal server error when I try to run it...
Code: | #!C:/Program Files/Perl/bin/perl.exe
print "Content-type: text/html\n\n";>\n";
print "<html><head>\n"; print "<title>Hello, world!</title></head>\n";
print "<body bgcolor=\"#FFFFFF\" text=\"#000000\">\n";
print "<h1>Hello, world!</h1>\n";
print "</body></html>\n"; |
_________________ Yarrt.com - Free Arcade
RypNet.co.uk - Online Game
MSN: michael_walker_2004 <at> hotmail <dot> com |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Aug 24, 2006 12:26 pm Post subject: Re: Internal Server Error |
|
|
Mikor,
You have a syntax error that should have been reported by Perl in cgi.log. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Mikor -
Joined: 21 Aug 2006 Posts: 144 Location: Hull, England
|
Posted: Thu Aug 24, 2006 12:31 pm Post subject: |
|
|
ok thanks. _________________ Yarrt.com - Free Arcade
RypNet.co.uk - Online Game
MSN: michael_walker_2004 <at> hotmail <dot> com |
|
Back to top |
|
|
pkSML -
Joined: 29 May 2006 Posts: 952 Location: Michigan, USA
|
Posted: Fri Aug 25, 2006 12:33 am Post subject: |
|
|
You're trying to send an incorrect HTTP header. The syntax is very touchy here.
Quote: | print "Content-type: text/html\n\n";>\n"; |
Delete the underlined text. _________________ Stephen
Need a LitlURL?
http://CodeBin.yi.org |
|
Back to top |
|
|
|