Chapter 10 pg. 339 trouble
Under "Getting Information on Files" the sample hit_counter_10.php is listed. The page says, "If it doesn't, we can infer that the current user is the first visitor to the site and create the data file."
I tried running the sample without a count.dat file in the directory and it didn't create one. It said, "Warning: fopen(./count.dat): failed to open stream: Permission denied in /home/something.com/html/learnphp/hit_counter_10.php on line 12
Cannot open ./count.dat"
Did I do something wrong? Isn't that sample supposed to create a count.dat file? Or did I read it wrong?
__________________
An overworked Web Developer who\'s expected to know everything yet given time to study nothing.
|