webForumDet fria alternativet

Gästboksproblem åter igen.. =)

1 svar · 167 visningar · startad av GrAnD

GrAnDMedlem sedan juni 200119 inlägg
#1

Hej igen!

hehe nu är det så att jag har kodat om gästboken. Så nu har jag ett annat problem, jag får ett internal server error. Antagligen så har jag inte configurerat Apache server rätt. Någon som kan hjälpa mig med detta? Jag bifogar felmeddelandet från webbserver och sedan skickar jag oxå med koden här nedan.
_____________________________________

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, support@icst.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

--------------------------------------------------------------------------------

Apache/1.3.20 Server at www.icst.com Port 80
_______________________________________

#!/usr/bin/perl
use CGI:

$co = new CGI;

open (BOOK, =>>book.htm") or die "Can´t open the guestbook!";
seek (BOOK, -length($co->end_HTML, 2);
$date ='date';
chop($date);
$username = $co->param,('username');
$username =~s/</&lt/;
$email = $co->param,('email');
$email =~s/</&lt/;
$city = $co->param,('city');
$city =~s/</&lt/;
$country = $co->param,('country');
$country =~s/</&lt/;
$text = $co-> param('comments')
$text =~s/</&lt/;
print BOOK
$co->h3("New Comments by", $username, " at ", $date, " from ", $city, " in the country of ", $country, " Contact user at ", $email,
$co->p,$text,),$co->hr,$co->end_HTML;
close BOOK;

print $co->header,
$co->start_html ( -title=>ICST´s Guestbook', -BGCOLOR=>'white',);

print

$co->center($co->h1('Thank you for your contribute to our guestbook!'));
"If you want to take a look in our guestbook", $co->a({href=>localhost/book.htm"},
"click here"),",",
$co->hr,
$co->end_HTML;

HansenMedlem sedan aug. 2000374 inlägg
#2

Hej,

Har du testat att köra ditt script innan du laddat upp det?

perl mitt_script.pl

Och sett om du får några fel meddelande?

Ditt script innehåller många fel, börja med att testa och ta bort felen efterhand.

------------------
Hansen
c.h@ngmedia.com

138 ms totalt · 3 externa anrop · v20260731065814-full.30151723
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
136 ms — hämta tråd, inlägg och bilagor (db)