i whan to this progrem
<body>
<?php
$fl="data.txt";
$fd=fopen($fl,"r");
$data = fread($fd,100);
echo "$data";
$data +=1;
echo "$data";
fclose($fd);
$fc=fopen($fl,'w');
fwrite($fc,$data,100);
fclose($fc);
?>
</body>
in the web....
100 101
Warning: fopen("data.txt","w") - Permission denied in /user/taufiq/home_html/counter.phtml on line 11
Warning: Unable to find file identifier 0 in /user/taufiq/home_html/counter.phtml on line 12
Warning: Unable to find file identifier 0 in /user/taufiq/home_html/counter.phtml on line 13
i whan to know the problems ?