Need help !!!!!!
Where to insert php code:
<?
$filecnt = "ISOcnt.txt";
if (file_exists($filecnt)) {
$fp = fopen($filecnt,"r");
$count = (int)fread($fp,24);
fclose($fp);
$count++;
} else {
$count = 1;
}
$fp = fopen($filecnt , "w");
fwrite($fp,$count);
fclose($fp);
echo $count;
?>
in the following html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Untitled Page</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV style="LEFT: 0px; OVERFLOW: hidden; POSITION: absolute; TOP: 0px"
align=left><IMG height=600 src="FCount_files/m219a.gif" width=700 align=top
border=0> </DIV></BODY></HTML>
in order $count appears on page ?
Thanks!
Where to insert php code:
<?
$filecnt = "ISOcnt.txt";
if (file_exists($filecnt)) {
$fp = fopen($filecnt,"r");
$count = (int)fread($fp,24);
fclose($fp);
$count++;
} else {
$count = 1;
}
$fp = fopen($filecnt , "w");
fwrite($fp,$count);
fclose($fp);
echo $count;
?>
in the following html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Untitled Page</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV style="LEFT: 0px; OVERFLOW: hidden; POSITION: absolute; TOP: 0px"
align=left><IMG height=600 src="FCount_files/m219a.gif" width=700 align=top
border=0> </DIV></BODY></HTML>
in order $count appears on page ?
Thanks!
Comment