Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

my cgi problems...

Status
Not open for further replies.

kgptzac

Technical User
Jan 12, 2004
5
US
I download a online game source and uploaded and i want to run it. but i know nothing about cgi, when i visit it says:

It looks like there was an error:

Your script produced this error:
'gethostbyaddr' trapped by operation mask at ebs_sub3.cgi line 22.
Compilation failed in require at ebs.cgi line 27.

here is my opening:

========================================

sub FRAME{
print <<&quot; -----END-----&quot;;
Content-type: text/html

<html><head>
<title>»ÒÄñ×ÊѶ¡ª¡ªÎÞ¾¡µÄÕ½¶·</title></head>
<frameset rows=&quot;$UPPER_FRAME,*&quot;>
<frame name=&quot;Main&quot; src=&quot;$MAIN_SCRIPT?LOGIN&quot;>
<frame name=&quot;Sub&quot; src=&quot;$MAIN_SCRIPT?LOG0&quot;>
</frameset>
</html>
-----END-----
}
sub STATUS{
&DBM_CONVERT('P',&quot;$FORM{pname}&quot;) if !$FORM{'Cmode'};
&DBM_CONVERT('C',&quot;$PL_VALUES[5]&quot;) if $PL_VALUES[5];
&ERROR('Óû§Ãû³ö´í','²»ÄܵǼ') if !@PL_VALUES;
&ERROR('ÃÜÂë´íÎó','ÇëÖØеǼ') if crypt ($FORM{'pass'},eb) ne &quot;$PL_VALUES[2]&quot;;
&REPAIR(PL);
if ($FORM{'login'}){
if ($ENV{'REMOTE_HOST'}){$host=&quot;$ENV{'REMOTE_HOST'}&quot;;}else{$ipad=pack('C4',split(/\./,$ENV{'REMOTE_ADDR'}));
$host = gethostbyaddr($ipad,2);}
dbmopen (%L,&quot;$DBM_L&quot;,0666);
foreach (sort {$b <=> $a} keys %L){$lc++;delete $L{&quot;$_&quot;} if $lc > 51;}
$L{&quot;$DATE&quot;}=&quot;$FORM{'pname'}!$ENV{'REMOTE_ADDR'}!$host&quot;;
dbmclose %L;


==============================================


i don't know what's wrong, help plz
 
ebs_sub3.cgi line 22
is where the error resides, perhaps there's a dependency furtehr up the file that hasn't loaded, or is the wrong version

gethostbyaddr should be a fairly primitive call

Try posting ebs_sub3.cgi line 22 and the preceding calls
--Paul
 
I would check to see if $ipad was actually defined properly.
 
Is there a compiled version of the game you could just download?
 
You should be careful of handing out your username and password. kgptzac . Although I think you can trust most people here, you should still be a bit more careful. I hope you have made backups of your work.
 
thanks sean4e. i know i shouldn't do this but i have no other solutions, plus, i have already erase most of my personal info and changed my password to a easy one (kgptzac3041) before i post in here. ^_^

anyone have a look yet?
 
kgptzac I found your problem;

The reason why your game doesn't work is because you only have a basic/free account, which only allows a very basic html page to be hosted. If you upgrade to a better account you will only be able to use cgi/perl and javascript etc.

So the answer to your problem my friend is: MONEY [/green]

Go to the tripod site and check through their different web hosting packages they offer. You have to see the works ...supports cgi/perl...

Sorry to be the bearer of bad news. ;-(

Sean.

top-hp1_r1_c1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top