As a test I have a simple php page which is working correctly –The php page is suppose to update a txt file every time it is hit. The txt file appears to be write protected so the txt file does not open or update. Is there anyway of resolving this. Please try the test page located at:
http://www.webwasp.co.uk/counter/
The php script is as follows:
<html>
<head>
<title>php test page</title>
</head>
<body>
<?php
echo "new program <br>";
$counterFile='counter.txt';
if($cfHandler=@fopen($counterFile,'r+'))
{
$visitors=fread($cfHandler,filesize($counterFile));
settype($visitors,'integer');
print($visitors.' visitors todate');
rewind($cfHandler);
fwrite($cfHandler,++$visitors);
fclose($cfHandler);
}
else{echo "could not open counter.txt Why not?? any help please...";};
?>
</body>
</html>