-
Simple PHP problem
Hi Creative Cow. A client asked me to build a simple text counter for a site that I built recently. I looked up information about creating counters in PHP but there’s a problem somewhere: the page correctly displays the number specified in the counter.txt file that the PHP refers to, but it apparently can’t update that file with the new count. The message that shows up on the site, right after the number, is:
Warning: fopen(counter.txt) [function.fopen]: failed to open stream: Permission denied in E:\inetpub\vhosts\cirquejournal.com\httpdocs\Index.php on line 115
Can’t open counter.txtThe full page can be found at https://www.cirquejournal.com . I’ve never really worked with PHP before, but this looks like it should be a simple problem, I just can’t figure out from the code where things are going wrong. It looks like a permissions/access issue but I’m not sure…
Any help/ideas would be awesomely appreciated. Thanks,
Paxson.