Jasonb61
08-18-2002, 08:41 PM
I am getting errors when using the page code below...
<?
include ('edit.me');
session_start();
#if ($count_what == 'visitors') {
if (!$PHPSESSID) {
$thefile = file("count.txt");
$count = implode("", $thefile);
$count++;
$myfile = fopen("count.txt","w");
fputs($myfile,$count);
fclose($myfile);
}
#}
#else {
#$thefile = file("count.txt");
#$count = implode("", $thefile);
#$count++;
#$myfile = fopen("count.txt","w");
#fputs($myfile,$count);
#fclose($myfile);
#}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script language="javascript" src="files/header.js"></script>
</head>
<!-- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -->
<!-- SCRIPTS/VARS. -->
<!-- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -->
<script>
var updtecnt=10
var lsupdate=new Array(updtecnt)
var lsupdatehead=new Array(updtecnt)
lsupdate[0]="I am currently working on a new layout for The Mainframe. Please be patient and tell me what you think later!"
lsupdatehead[0]="{New Layout} :: <a href=\"mailto:jasonb61@hotmail.com\">JohnnyX</a> - [10:40 AM on 08/04/02]"
lsupdate[1]="Sorry I havn't updated much! I've STILL been working on MSN Skullions 3.3... It should be done soon."
lsupdatehead[1]="{Update} :: <a href=\"mailto:jasonb61@hotmail.com\">JohnnyX</a> - [11:07 AM on 08/17/02]"
</script>
<script>
var dlnum="6"
var mchip="$6.92"
var memnum="2"
var newmem="BlinX"
var newmemlnk="mailto:isthistoolong@msn.com"
var BK=" "
var MS="Member Site"
</script>
<script>
var totallinks=9
var urls=new Array(totallinks)
var titles=new Array(totallinks)
urls[0]="http://brinkster.com"
titles[0]="Brinkster"
urls[1]="http://dynamicdrive.com"
titles[1]="Dynamic Drive"
urls[2]="http://www.modchip.com/clickcgi/click.cgi?jasonbmframe"
titles[2]="Mod-Chip Gateway"
urls[3]="http://www.modchip.com/clickcgi/click.cgi?jasonbmframe"
titles[3]="Modchip Gateway"
urls[4]="http://www.modchip.com/clickcgi/click.cgi?jasonbmframe"
titles[4]="Modchip"
urls[5]="http://haines.vze.com"
titles[5]="Haines Crappy Website"
urls[6]="http://www.modchip.com/clickcgi/click.cgi?jasonbmframe"
titles[6]="Modchip Gateway"
urls[7]="http://kaos.8thw.com"
titles[7]="Kaos"
urls[8]="http://mess.be"
titles[8]="Mess.be"
urls[9]="http://pscode.com"
titles[9]="PSCode.com"
var MachoManRandomSavage=Math.floor(Math.random()*totallinks)
</script>
<center><img src="images/mflogo1.gif" border=0><p></center>
<font face=verdana color=white size=1><b><center>Please Welcome our Newest Member, <font color=red face=verdana size=1><a href="#" onClick="this.href=newmemlnk" target="memsite" onmouseover="window.status='Member Site';return true;" onmouseout="window.status='';return true;"><script>document.write(newmem);</script></a></font></b></center>
<!-- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -->
<!-- LEFT TABLES -->
<!-- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -->
<table width=100% align="center" border=1 bordercolor=#808080 cellspacing=0>
<tr><td>
<table align="left" border=1 width=19% height=12 bordercolor=#808080 cellspacing=0 bgcolor=#cccccc>
<tr><td bgcolor=#808080>
<font face="Verdana" color=#ffffff size=2><b><center>Main Menu</center></b></font>
<tr><td bgcolor=#cccccc>
<font size=2><a href="index.html">Home</font></a>
<br> <font size=2><a href="forums.html">Message Board</font></a> *
<tr><td bgcolor=#808080>
<font face="Verdana" color=#ffffff size=2><b><center>Downloads</center></b></font>
<tr><td bgcolor=#cccccc>
<font size=2><a href="ourprogs.html">Our Programs</a>
<br> <font size=2><a href="25new.html">25 Newest</a>
<br> <font size=2><a href="vbcode.html">VB Source Code</a>
<tr><td bgcolor=#808080>
<font face="Verdana" color=#ffffff size=2><b><center>Contacts</center></b></font>
<tr><td bgcolor=#cccccc>
<font size=2><a href="mailto:jasonb61@hotmail.com">JohnnyX</a></font> <img src="http://freestyle.servebeer.com:8888/msn/jasonb61@hotmail.com" border=0 height=18 width=18>
<br> <font size=2><a href="mailto:isthistoolong@msn.com">BlinX</a></font> <img src="http://freestyle.servebeer.com:8888/msn/isthistoolong@msn.com" border=0 height=18 width=18>
<tr><td bgcolor=#808080>
<font face="Verdana" color=#ffffff size=2><b><center>Services</center></b></font>
<tr><td bgcolor=#cccccc>
<font size=2><a href="custom1.html">Custom CDs</a>
<br> <font size=2><a href="custom2.html">Custom Programs</a>
</table>
<table align="left" border=0 width=1% height=1 cellspacing=0><tr><td></tr></td></table>
<table align="left" border=1 width=60% height=12 bordercolor=#808080 cellspacing=1 bgcolor=#cccccc>
<tr><td bgcolor=#808080><font face="Verdana" color=#ffffff size=1>Current Location: <font color="red"><b>Home</b></font>
<tr><td bgcolor=#808080>
<table align="left" border=1 width=100% height=12 bordercolor=#808080 cellspacing=1 bgcolor=#cccccc>
<!-- DO NOT EDIT ABOVE HERE... MUCH -->
<!--- ||| THIS IS THE XX$ LINE ||| --->
<tr><td>
<font size=-2><b><center><script>document.write(lsupdatehead[1]);</script></center></b></font>
<tr><td>
<font size=-1><b><center><script>document.write(lsupdate[1]);</script></center></b></font><br>
</tr></td>
<!--- !!!!!!!!!!!!!!!!!!!!!!!!! --->
<!--- COPY BETWEEN HERE AND EDIT THEN PASTE RIGHT BELOW THE 'XX$' LINE --->
<tr><td>
<font size=-2><b><center><script>document.write(lsupdatehead[0]);</script></center></b></font>
<tr><td>
<font size=-1><b><center><script>document.write(lsupdate[0]);</script></center></b></font><br>
</tr></td>
<!--- COPY BETWEEN HERE AND EDIT THEN PASTE RIGHT BELOW THE 'XX$' LINE --->
<!--- !!!!!!!!!!!!!!!!!!!!!!!!! --->
<!-- DO NOT EDIT BELOW HERE -->
</table>
</tr></td>
<table align="left" border=0 width=1% height=1 cellspacing=0><tr><td></tr></td></table>
<table align="left" border=1 width=19% height=12 bordercolor=#808080 cellspacing=0 bgcolor=#cccccc>
<tr><td bgcolor=#808080>
<font face="Verdana" color=#ffffff size=2><b><center>Random Link</center></b></font>
<tr><td bgcolor=#cccccc>
<script>
var cont="<center><font size=2><a href='"+urls[MachoManRandomSavage]+"' target='rndm'>"
cont+=titles[MachoManRandomSavage]+"</a></font></center>"
document.write(cont)
</script>
<tr><td bgcolor=#808080>
<font face="Verdana" color=#ffffff size=2><b><center>Top 10 Downloads</center></b></font>
<tr><td bgcolor=#cccccc>
<font size=2><a href="remotem/remotem1.zip" target="td1">Remote MSN 1.0</a></font>
<br> <font size=2><a href="skullions/mskullionsclnt32.zip" target="td2>MSN Skullions 3.2</a></font>
<br> <font size=2><a href="downloads/msnim/xbase.zip" target="td3">X Base MSN</a></font>
<br> <font size=2><a href="skullions/mskullionsclnt31.zip" target="td4">MSN Skullions 3.1</a></font>
<br> <font size=2><a href="skullions/mskullionsclnt30.zip" target="td5">MSN Skullions 3.0</a></font>
<br> <font size=2><a href="skullions/mskullionsclnt16.zip" target="td6">MSN Skullions 1.6</a></font>
<tr><td bgcolor=#808080>
<font face="Verdana" color=#ffffff size=2><b><center>Top 10 Links</center></b></font>
<tr><td bgcolor=#cccccc>
<font size=2><a href="http://mess.be" target="tl1">Mess.be</a></font>
<br> <font size=2><a href="http://kaos.8thw.com" target="tl2">Kaos</a></font>
<br> <font size=2><a href="http://www.msnfanatic.com" target="tl3">Msnfanatic.com</a></font>
<br> <font size=2><a href="http://users.pandora.be/heavyk/" target="tl4">Heavy K's</a></font>
<br> <font size=2><a href="mailto:jasonb61@hotmail.com" target="tl5">Your site here</a></font>
<br> <font size=2><a href="mailto:jasonb61@hotmail.com" target="tl6">Your site here</a></font>
<br> <font size=2><a href="mailto:jasonb61@hotmail.com" target="tl7">Your site here</a></font>
<br> <font size=2><a href="http://tlsecurity.net" target="tl8">TLSecurity</a></font>
<br> <font size=2><a href="mailto:jasonb61@hotmail.com" target="tl9">Your site here</a></font>
<br> <font size=2><a href="http://www.modchip.com/clickcgi/click.cgi?jasonbmframe" target="tl10">Mod-Chip</a></font>
</tr></td>
</table>
</tr></td>
</table>
<?
$thefile = file("count.txt");
$count = implode("", $thefile);
if ($print_what == 'text') {
print $count;
}
else {
$num = strlen ($count);
$i = 0;
while ($i < $num) :
$graphic = substr ($count, $i, 1);
print "<img src=\"$url/$graphic.$ext\" border=\"0\" alt=\"Unique Visits: $count\">";
$i++;
endwhile;
}
?>
<script src="files/footer.js"></script>
You can visit the site {http://mainframe.vze.com} to view the erros but they return somthing saying my variables are not defined... but if I refresh a couple of times, it loads perfectly....why?
<?
include ('edit.me');
session_start();
#if ($count_what == 'visitors') {
if (!$PHPSESSID) {
$thefile = file("count.txt");
$count = implode("", $thefile);
$count++;
$myfile = fopen("count.txt","w");
fputs($myfile,$count);
fclose($myfile);
}
#}
#else {
#$thefile = file("count.txt");
#$count = implode("", $thefile);
#$count++;
#$myfile = fopen("count.txt","w");
#fputs($myfile,$count);
#fclose($myfile);
#}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script language="javascript" src="files/header.js"></script>
</head>
<!-- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -->
<!-- SCRIPTS/VARS. -->
<!-- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -->
<script>
var updtecnt=10
var lsupdate=new Array(updtecnt)
var lsupdatehead=new Array(updtecnt)
lsupdate[0]="I am currently working on a new layout for The Mainframe. Please be patient and tell me what you think later!"
lsupdatehead[0]="{New Layout} :: <a href=\"mailto:jasonb61@hotmail.com\">JohnnyX</a> - [10:40 AM on 08/04/02]"
lsupdate[1]="Sorry I havn't updated much! I've STILL been working on MSN Skullions 3.3... It should be done soon."
lsupdatehead[1]="{Update} :: <a href=\"mailto:jasonb61@hotmail.com\">JohnnyX</a> - [11:07 AM on 08/17/02]"
</script>
<script>
var dlnum="6"
var mchip="$6.92"
var memnum="2"
var newmem="BlinX"
var newmemlnk="mailto:isthistoolong@msn.com"
var BK=" "
var MS="Member Site"
</script>
<script>
var totallinks=9
var urls=new Array(totallinks)
var titles=new Array(totallinks)
urls[0]="http://brinkster.com"
titles[0]="Brinkster"
urls[1]="http://dynamicdrive.com"
titles[1]="Dynamic Drive"
urls[2]="http://www.modchip.com/clickcgi/click.cgi?jasonbmframe"
titles[2]="Mod-Chip Gateway"
urls[3]="http://www.modchip.com/clickcgi/click.cgi?jasonbmframe"
titles[3]="Modchip Gateway"
urls[4]="http://www.modchip.com/clickcgi/click.cgi?jasonbmframe"
titles[4]="Modchip"
urls[5]="http://haines.vze.com"
titles[5]="Haines Crappy Website"
urls[6]="http://www.modchip.com/clickcgi/click.cgi?jasonbmframe"
titles[6]="Modchip Gateway"
urls[7]="http://kaos.8thw.com"
titles[7]="Kaos"
urls[8]="http://mess.be"
titles[8]="Mess.be"
urls[9]="http://pscode.com"
titles[9]="PSCode.com"
var MachoManRandomSavage=Math.floor(Math.random()*totallinks)
</script>
<center><img src="images/mflogo1.gif" border=0><p></center>
<font face=verdana color=white size=1><b><center>Please Welcome our Newest Member, <font color=red face=verdana size=1><a href="#" onClick="this.href=newmemlnk" target="memsite" onmouseover="window.status='Member Site';return true;" onmouseout="window.status='';return true;"><script>document.write(newmem);</script></a></font></b></center>
<!-- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -->
<!-- LEFT TABLES -->
<!-- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -->
<table width=100% align="center" border=1 bordercolor=#808080 cellspacing=0>
<tr><td>
<table align="left" border=1 width=19% height=12 bordercolor=#808080 cellspacing=0 bgcolor=#cccccc>
<tr><td bgcolor=#808080>
<font face="Verdana" color=#ffffff size=2><b><center>Main Menu</center></b></font>
<tr><td bgcolor=#cccccc>
<font size=2><a href="index.html">Home</font></a>
<br> <font size=2><a href="forums.html">Message Board</font></a> *
<tr><td bgcolor=#808080>
<font face="Verdana" color=#ffffff size=2><b><center>Downloads</center></b></font>
<tr><td bgcolor=#cccccc>
<font size=2><a href="ourprogs.html">Our Programs</a>
<br> <font size=2><a href="25new.html">25 Newest</a>
<br> <font size=2><a href="vbcode.html">VB Source Code</a>
<tr><td bgcolor=#808080>
<font face="Verdana" color=#ffffff size=2><b><center>Contacts</center></b></font>
<tr><td bgcolor=#cccccc>
<font size=2><a href="mailto:jasonb61@hotmail.com">JohnnyX</a></font> <img src="http://freestyle.servebeer.com:8888/msn/jasonb61@hotmail.com" border=0 height=18 width=18>
<br> <font size=2><a href="mailto:isthistoolong@msn.com">BlinX</a></font> <img src="http://freestyle.servebeer.com:8888/msn/isthistoolong@msn.com" border=0 height=18 width=18>
<tr><td bgcolor=#808080>
<font face="Verdana" color=#ffffff size=2><b><center>Services</center></b></font>
<tr><td bgcolor=#cccccc>
<font size=2><a href="custom1.html">Custom CDs</a>
<br> <font size=2><a href="custom2.html">Custom Programs</a>
</table>
<table align="left" border=0 width=1% height=1 cellspacing=0><tr><td></tr></td></table>
<table align="left" border=1 width=60% height=12 bordercolor=#808080 cellspacing=1 bgcolor=#cccccc>
<tr><td bgcolor=#808080><font face="Verdana" color=#ffffff size=1>Current Location: <font color="red"><b>Home</b></font>
<tr><td bgcolor=#808080>
<table align="left" border=1 width=100% height=12 bordercolor=#808080 cellspacing=1 bgcolor=#cccccc>
<!-- DO NOT EDIT ABOVE HERE... MUCH -->
<!--- ||| THIS IS THE XX$ LINE ||| --->
<tr><td>
<font size=-2><b><center><script>document.write(lsupdatehead[1]);</script></center></b></font>
<tr><td>
<font size=-1><b><center><script>document.write(lsupdate[1]);</script></center></b></font><br>
</tr></td>
<!--- !!!!!!!!!!!!!!!!!!!!!!!!! --->
<!--- COPY BETWEEN HERE AND EDIT THEN PASTE RIGHT BELOW THE 'XX$' LINE --->
<tr><td>
<font size=-2><b><center><script>document.write(lsupdatehead[0]);</script></center></b></font>
<tr><td>
<font size=-1><b><center><script>document.write(lsupdate[0]);</script></center></b></font><br>
</tr></td>
<!--- COPY BETWEEN HERE AND EDIT THEN PASTE RIGHT BELOW THE 'XX$' LINE --->
<!--- !!!!!!!!!!!!!!!!!!!!!!!!! --->
<!-- DO NOT EDIT BELOW HERE -->
</table>
</tr></td>
<table align="left" border=0 width=1% height=1 cellspacing=0><tr><td></tr></td></table>
<table align="left" border=1 width=19% height=12 bordercolor=#808080 cellspacing=0 bgcolor=#cccccc>
<tr><td bgcolor=#808080>
<font face="Verdana" color=#ffffff size=2><b><center>Random Link</center></b></font>
<tr><td bgcolor=#cccccc>
<script>
var cont="<center><font size=2><a href='"+urls[MachoManRandomSavage]+"' target='rndm'>"
cont+=titles[MachoManRandomSavage]+"</a></font></center>"
document.write(cont)
</script>
<tr><td bgcolor=#808080>
<font face="Verdana" color=#ffffff size=2><b><center>Top 10 Downloads</center></b></font>
<tr><td bgcolor=#cccccc>
<font size=2><a href="remotem/remotem1.zip" target="td1">Remote MSN 1.0</a></font>
<br> <font size=2><a href="skullions/mskullionsclnt32.zip" target="td2>MSN Skullions 3.2</a></font>
<br> <font size=2><a href="downloads/msnim/xbase.zip" target="td3">X Base MSN</a></font>
<br> <font size=2><a href="skullions/mskullionsclnt31.zip" target="td4">MSN Skullions 3.1</a></font>
<br> <font size=2><a href="skullions/mskullionsclnt30.zip" target="td5">MSN Skullions 3.0</a></font>
<br> <font size=2><a href="skullions/mskullionsclnt16.zip" target="td6">MSN Skullions 1.6</a></font>
<tr><td bgcolor=#808080>
<font face="Verdana" color=#ffffff size=2><b><center>Top 10 Links</center></b></font>
<tr><td bgcolor=#cccccc>
<font size=2><a href="http://mess.be" target="tl1">Mess.be</a></font>
<br> <font size=2><a href="http://kaos.8thw.com" target="tl2">Kaos</a></font>
<br> <font size=2><a href="http://www.msnfanatic.com" target="tl3">Msnfanatic.com</a></font>
<br> <font size=2><a href="http://users.pandora.be/heavyk/" target="tl4">Heavy K's</a></font>
<br> <font size=2><a href="mailto:jasonb61@hotmail.com" target="tl5">Your site here</a></font>
<br> <font size=2><a href="mailto:jasonb61@hotmail.com" target="tl6">Your site here</a></font>
<br> <font size=2><a href="mailto:jasonb61@hotmail.com" target="tl7">Your site here</a></font>
<br> <font size=2><a href="http://tlsecurity.net" target="tl8">TLSecurity</a></font>
<br> <font size=2><a href="mailto:jasonb61@hotmail.com" target="tl9">Your site here</a></font>
<br> <font size=2><a href="http://www.modchip.com/clickcgi/click.cgi?jasonbmframe" target="tl10">Mod-Chip</a></font>
</tr></td>
</table>
</tr></td>
</table>
<?
$thefile = file("count.txt");
$count = implode("", $thefile);
if ($print_what == 'text') {
print $count;
}
else {
$num = strlen ($count);
$i = 0;
while ($i < $num) :
$graphic = substr ($count, $i, 1);
print "<img src=\"$url/$graphic.$ext\" border=\"0\" alt=\"Unique Visits: $count\">";
$i++;
endwhile;
}
?>
<script src="files/footer.js"></script>
You can visit the site {http://mainframe.vze.com} to view the erros but they return somthing saying my variables are not defined... but if I refresh a couple of times, it loads perfectly....why?