I have written this code for page hits cout
its working perfectly ok on my pc
but when i uploaded it on my site it show error any body help me in this issue

$cnt = "hits.txt";
$h = @fopen($cnt, 'r') or die("can't open file");
$h1 = @fopen($cnt, 'w') or die("can't open file");
echo "Page Hits:".$x;


link to page is http://wasimmalik.freewebhostx.com/pagehit.php
error is
Warning: fopen(hits.txt) [function.fopen]: failed to open stream: Permission denied in /www/freewebhostx.com/w/a/s/wasimmalik/htdocs/pagehit.php on line 5
can't open file|
need ur help
thanks in advance

Check the file read/write/execute permissions after you uploaded the file.