what does this mean ??
In my error log, after trying to execute a .cgi file, reads
[Tue Jan 30 16:11:07 2001] [error] [client xxx.xxx.xxx.xx] Premature end of
script headers: /www/user name/cgi-bin/admin.cgi
This is why the script does not run but what does it mean ??
Thanks
Tony
Before you criticise someone walk a mile in their shoes......
Then, if they don't like what you say they are 1 mile away and barefoot.
adalt posted this at 16:19 — 30th January 2001.
They have: 72 posts
Joined: Dec 2000
Oh and here is the script :
Thanks again
Tony
#!/opt/perl/bin/perl
# Board Power (tm) v2.07 PS Beta
# Written by Joseph Bannon
# Copyright 1998-2000 Joseph Bannon - All Rights Reserved
# Board Power is a trademark of Joseph Bannon.
# Software Distributed by: The Webmaster Guide, Inc.
# Visit us online at http://www.thewebmasterguide.com
$thisprogram = "admin.cgi";
$operatingsystem = "unix";
if (($operatingsystem eq "nt") || ($operatingsystem eq "other")) {
$bpdirectory = "";
}
$filetorequire = "$bpdirectory" . "config.cgi";
require "$filetorequire";
$filetorequire = "$bpdirectory" . "variables/setup.cgi";
require "$filetorequire";
$filetorequire = "$bpdirectory" . "programs.cgi";
require "$filetorequire";
$filetorequire = "$bpdirectory" . "adminroutes.cgi";
require "$filetorequire";
# Parse incoming information.
&parsequery;
$inpassword = $QUERY{'password'};
&parseform;
$action = $FORM{'action'};
$inusername = $FORM{'username'};
$inpassword = $FORM{'password'};
&parsecookie;
# Cookies
if ($action eq "enter") { &setcookie("passwordcookie,$inpassword"); }
else { $inpassword = $COOKIE{'passwordcookie'}; }
print "Content-type: text/html\n\n";
&part1;
$inusername =~ s/ /\_/g;
$memberfile = "$bpdirectory" . "members/$inusername.cgi";
if ("$inpassword" eq "$adminpass" || "$inpassword" eq "$monitorpass") {
$showmenu = "yes";
$output .= "\n";
$output .= "Welcome to Board Power v2.07 PS Beta.\n";
$currenttime = time;
$shortdate = &shortdate("$currenttime");
$shorttime = &shorttime("$currenttime");
$output .= "Current Server Time: $shorttime on $shortdate\n";
$output .= "\n";
$output .= "Credits\n";
$output .= "
\n";- Development Manager Joseph Bannon\n";
- Lead Programmer Joseph Bannon\n";
- MySQL Consultant Elliott Frisch\n";
- Design Trina Hall\n";
$output .= "
$output .= "
$output .= "
$output .= "
$output .= "
\n";
}
elsif ("$inpassword" ne "$adminpass" && "$inpassword" ne "$monitorpass") {
&loginform;
$output =~ s/Welcome To The Admin Center/Wrong Password/;
}
else { &loginform; }
&part2;
print "$output";
exit;
Before you criticise someone walk a mile in their shoes......
Then, if they don't like what you say they are 1 mile away and barefoot.
Matt@Ikonboard posted this at 02:09 — 1st February 2001.
They have: 16 posts
Joined: Jan 2001
hehe, the answer is:: 'It's a boardpower script'
In all seriousness, it could be anything.
adalt posted this at 05:22 — 1st February 2001.
They have: 72 posts
Joined: Dec 2000
Deleted it all, downloaded again, ftp'd again now it works.
Tony
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.