|
Posted by Chris on 03/21/07 19:42
I'm using the following code
<?php
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
error_reporting(0);
$incrementfilename = $_GET['textfilename'];
$handle = fopen($incrementfilename, 'w');
$incrementcontents = file_get_contents($incrementfilename);
$incrementcontents = $incrementcontents + 1;
fwrite($handle,$incrementcontents);
fclose($handle);
chmod($incrementfilename,0777);
?>
The code works until I reach 9. While I am expecting 10, the file has 1.
Any ideas?
Chris
Navigation:
[Reply to this message]
|