ygrouk
04-13-2003, 09:26 PM
Hi guys
my browser returns the message found at the url below.
http://www.gameygro.com/play/space.php?1
I am using the following php code
<?php
/* Count How Many Times A Space Game Has Been Played */
$temp = file('/usr/local/psa/home/vhosts/gameygro.com/httpdocs/data/gamecount/' , 'spacetotal.txt');
$fp=fopen($temp ,"r");
$count=fgets($fp,1024);
fclose($fp);
$fw = fopen($temp ,"w");
$cnew = $count+1;
$countnew = fputs($fw,$count+1);
echo "$cnew";
fclose($fw);
/* Send To Correct Page */
header ("Location: /play/space/$QUERY_STRING.php");
?>
Whats worong??
Pete
my browser returns the message found at the url below.
http://www.gameygro.com/play/space.php?1
I am using the following php code
<?php
/* Count How Many Times A Space Game Has Been Played */
$temp = file('/usr/local/psa/home/vhosts/gameygro.com/httpdocs/data/gamecount/' , 'spacetotal.txt');
$fp=fopen($temp ,"r");
$count=fgets($fp,1024);
fclose($fp);
$fw = fopen($temp ,"w");
$cnew = $count+1;
$countnew = fputs($fw,$count+1);
echo "$cnew";
fclose($fw);
/* Send To Correct Page */
header ("Location: /play/space/$QUERY_STRING.php");
?>
Whats worong??
Pete