Lunarpages Web Hosting Forum

Author Topic: internal server error  (Read 786 times)

Offline guguBanana

  • Newbie
  • *
  • Posts: 5
internal server error
« on: January 11, 2005, 03:32:37 PM »
Hi,

I have created simple perl script to tell me the localtime. However when i uploaded to cgi-bin directory, i recive an internal server error during view time.

can somebody help

the code is pasted below:-
Code: [Select]

#!/usr/bin/perl
#Fig 7.2: fig7_2.pl
#Displays the current date and time in a web browser

use warnings;
use strict;

print "Content-type: text/html\n\n";
print "<html><head><title>Current date and time</title>";
print "</head>\n<body>";
print scalar(localtime());
print "</body></html>";


thank you in advance

Offline guguBanana

  • Newbie
  • *
  • Posts: 5
Re: internal server error
« Reply #1 on: January 11, 2005, 05:25:28 PM »
When i test this code out on my computer, it works perfectly

what am i doing wrong

Quote from: guguBanana
Hi,

I have created simple perl script to tell me the localtime. However when i uploaded to cgi-bin directory, i recive an internal server error during view time.

can somebody help

the code is pasted below:-
Code: [Select]

#!/usr/bin/perl
#Fig 7.2: fig7_2.pl
#Displays the current date and time in a web browser

use warnings;
use strict;

print "Content-type: text/html\n\n";
print "<html><head><title>Current date and time</title>";
print "</head>\n<body>";
print scalar(localtime());
print "</body></html>";


thank you in advance