I have not been able to make it work.
I do not understand the mechanism (obviously).
What I am getting is the counter advancing, no download and a blank page.
see for yourself at
http://julianbury.com/games/
Here are the two files are here in their entirety:
Greed.php ...
==================================================================================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="../index.css" />
<title>julianbury.com</title>
</head><body><center>
<div style="width:1000px;">
<?php $data=file('../links.txt'); $n=count($data); for( $i=0; $i < $n; $i++){ print $data[$i]; } ?>
<p style="text-align:center;"><img src="Greed.jpg"/></p>
<a href= "Greed_download.php?path=Install_Greed.exe"><h1>Download Greed</h1></a>
</div></center></body></html>
==================================================================================
Greed_download.php ...
==================================================================================
<?php
if (isset($_GET['path']){
$hits=file("../Greed.x");$hits[0]++;$fp=fopen("../Greed.x","w");fputs($fp,$hits[0]);fclose($fp);
header("Location:$_GET['path']");
}
header("Location:"index.php");
?>
==================================================================================
What am I doing wrong?
I am sorry to be such an ignorant pain in the arse.
(-_-)