Internal Server Error

 
Post new topic   Reply to topic    Aprelium Forum Index -> Perl
View previous topic :: View next topic  
Author Message
Mikor
-


Joined: 21 Aug 2006
Posts: 144
Location: Hull, England

PostPosted: Thu Aug 24, 2006 11:07 am    Post subject: Internal Server Error Reply with quote

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 View user's profile Send private message Send e-mail MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Aug 24, 2006 12:26 pm    Post subject: Re: Internal Server Error Reply with quote

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 View user's profile Send private message Send e-mail
Mikor
-


Joined: 21 Aug 2006
Posts: 144
Location: Hull, England

PostPosted: Thu Aug 24, 2006 12:31 pm    Post subject: Reply with quote

ok thanks.
_________________
Yarrt.com - Free Arcade
RypNet.co.uk - Online Game

MSN:
michael_walker_2004 <at> hotmail <dot> com
Back to top View user's profile Send private message Send e-mail MSN Messenger
pkSML
-


Joined: 29 May 2006
Posts: 952
Location: Michigan, USA

PostPosted: Fri Aug 25, 2006 12:33 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Perl All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group