Recently our servers hard drive filled up and caused some issues with our member list. After taking the steps to fix the problem through the tutorial, our memberlist was corrupted, however member files are left intact. We now need our memberlist to be rebuilt with a script as in this post:
http://ubbforums.infopop.com/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=33&t=000005 However, when we try to execute this script,
>
>print "tError - Unable to open ".$memDir.$file." ($!)n";
>next;
>}
>
># Grab the user name
>$name = <USER>;
>
># Did we get any data
>unless ( $name ) {
>print "tFound empty record in file ".$memDir.$file."n";
>next;
>}
>
># Close the file
>close(USER);
>
># Rip off those nast DOS CRLF's if present
>$name =~ s/$CRLF//;
>
># Build user id from filename
>my $id = $file;
>$id =~ s/.cgi//;
>
># Print info in new memberslist.cgi file
>print MEMLIST $name."|!!|".$id."n";
>
>$count++;
>}
>
># Close memberslist.cgi file
>close(MEMLIST);
>
># Yeah, we're done...
>print "tProcessed $count record(s) successfully...n";
>print "Done...n";
>
>
>I ran into an "Internal server error" Premature end of script headers:
>/home/usr162/cgi-bin/darwin.cgi
>
>A) Does this script have to be placed somewhere OTHER then the main cgi-bin ?
>*members folder?*
>B) Does it have to be run from a telnet prompt?
>if so (we have no acess to this fuction) is there another way around it?