Dear my friends... I am writing a program to count how many time my homepage has been visited with PHP. The algorithm is: " if the visitor doesn't have the cookies, that means he/she just visited my homepage after the last time he/she close his/her internet browser. So I open my file which located in the directory of my homepage to read and increased the value inside it once. " I am using SuSE Linux 8.1 and PHP 4.2.2. But I'm stucked with these error message: " Warning: fopen("ngitung.txt", "w") - Permission denied in /srv/www/htdocs/iamsoft/isimuka.php on line 9 Warning: fwrite(): supplied argument is not a valid File-Handle resource in /srv/www/htdocs/iamsoft/isimuka.php on line 10 Warning: fclose(): supplied argument is not a valid File-Handle resource in /srv/www/htdocs/iamsoft/isimuka.php on line 11 Warning: fopen("ngitung.txt", "r") - No such file or directory in /srv/www/htdocs/iamsoft/isimuka.php on line 13 Warning: fread(): supplied argument is not a valid File-Handle resource in /srv/www/htdocs/iamsoft/isimuka.php on line 14 Warning: fclose(): supplied argument is not a valid File-Handle resource in /srv/www/htdocs/iamsoft/isimuka.php on line 16 Warning: fopen("ngitung.txt", "w") - Permission denied in /srv/www/htdocs/iamsoft/isimuka.php on line 18 Warning: fwrite(): supplied argument is not a valid File-Handle resource in /srv/www/htdocs/iamsoft/isimuka.php on line 19 Warning: fclose(): supplied argument is not a valid File-Handle resource " Any body would be so nice to help me? Please tell me what should I do. Here is my code: " <HTML> <BODY bgcolor="white"><FONT type="arial" size="3"><CENTER><IMG SRC="gambar/LogoI@m.jpg" border="0"></CENTER> <BR><BR><BR> <?PHP if (!isset($tamunyaiamsoft)){ $berkastamu = "ngitung.txt"; if (!file_exists($berkastamu)){ $bukafile = fopen($berkastamu, "w"); fwrite($bukafile, "1"); fclose($bukafile); } $bukafile = fopen($berkastamu, "r"); $urut = fread($bukafile, 5); echo $urut; fclose($bukafile); $urut++; $bukafile = fopen($berkastamu, "w"); fwrite($bukafile, $urut); fclose($bukafile); if (!isset($OK)){ header("Location: $PHP_SELF"."?OK=1"); exit; } } ?> <CENTER><IMG SRC="gambar/banner.gif" border="0"></CENTER> <CENTER><H1>Under construction for "i@m"</H1></CENTER> <CENTER> <B> <?PHP if (isset($tamunyaiamsoft)){ echo "$tamunyaiamsoft.visitors since March 24, 2003.\n"; } ?> </B> </CENTER> <CENTER><I><FONT type="arial" size="2.9" color="blue"> <B>Best viewed with : Mozilla and Konqueror Browsers. Resolutions : 1024 x 728.<BR> Please enable cookies, JavaScript and JavaApplet on your browser.</B> </FONT></I></CENTER><BR><BR><BR> </FONT></BODY> </HTML> " Thank you very much in advance. __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com