|
hello,
i use this code
open (TXTFILE, "data/Adver/adver.db");
$shows = <TXTFILE>;
close(TXTFILE);
$shows++;
open (FILE, ">data/Adver/adver.db") ;
print FILE $shows;
close (FILE) ;
evrey few minutes thie file is rest from zero.
this code is work, i use this code fot counter in my site.
i need help. mattan
|
|
|
Hi,
I dont fully understand what the problem is, if you re-word your question i may be able to help. I can see from the code what you are trying to achieve, i think a website hit counter. You would probably be better off using the one file, incrementing the variable and updating the file.
|
|
|
|
|
|
|
|