0

why dos the hit number not show up at $A ?

hitcounter.txt<HTML><HEAD>
<META name=GENERATOR content="MSHTML 8.00.7600.16722"></HEAD>
<BODY>0 0</BODY></HTML>
<HTML><HEAD><TITLE>hitcounter.php</TITLE><META content="text/html; charset=utf-8" http-equiv=Content-Type><META name=GENERATOR content="MSHTML 8.00.7600.16722"><STYLE type=text/css>BODY {
	FONT-FAMILY: verdana, arial, sans-serif
}</STYLE><?php
$count_my_page = ("hitcounter.txt");
$hits = file($count_my_page);
$hits[0] ++;
$fp = fopen($count_my_page , "w");
fputs($fp , "$hits[0]");
fclose($fp);
echo $hits[0];
?></HEAD><BODY>

</BODY></HTML>
<HTML><HEAD><TITLE>GAMES BOARD.php</TITLE><?php
 
 $A ={ include ("counter.php").value};
 
?><META name=GENERATOR content="MSHTML 8.00.7600.16722"></HEAD><BODY>
<TABLE border=1 cellSpacing=2 cellPadding=1 width="100%" bgColor=#0000ff>
<TBODY><TR><TD rowSpan=4><INPUT style="WIDTH: 82px; HEIGHT: 22px" value='("$A")' size=11 name=textbox1></TD>
<TD rowSpan=4 colSpan=3>xxxx <?php echo ("$A");?></TD></TR><TR></TR><TR></TR><TR></TR><META name=GENERATOR content="MSHTML 8.00.7600.16722">
</TBODY></TABLE></BODY></HTML>

should be a quick easy point for a newbiee

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by tomato.pgn
0

in ur last php file ...chk 8th line...
u r echoing...

echo ("$A");

instead of this try

echo $A;

might work fine or else tell me what's the output...then i can debug it....

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.