Try this...
PHP Code:
<?php
/* Count How Many Times A Space Game Has Been Played */
$temp = 'usr/local/psa/home/vhosts/gameygro.com/httpdocs/data/gamecount/spacetotal.txt';
$fp=fopen($temp ,"r");
while(!feof($fp))
{
$count=fgets($fp, filesize($temp));
}
fclose($fp);
$fw = fopen($temp ,"w");
$cnew = $count+1;
$countnew = fputs($fw,$cnew);
fclose($fw);
/* Send To Correct Page */
header ("Location: /play/space/$QUERY_STRING.php");
?>
Right, that should work. Remember, headers can only be sent BEFORE any page content. You tried to echo $cnew, writing content to the page, so the header fails.
If it doesnt work, post back.