Re: [PHP-WIN] fwrite error (noobie I am)

2003-07-06 Thread Ron Stephenson
You ARE the man! That was it! Thank you very much! I new it was something simple like that, just didn't know where to look. I am forever in your debt. I had gone to many different newsgroups and no one even came close to the solution. I wish there was some way I could repay you. You have saved my s

Re: [PHP-WIN] fwrite error (noobie I am)

2003-07-06 Thread Stephen March
Allright, I got ya :) Open up any folder, let's say My Documents. Then go to the tools menu => Folder Options. From the "view" tab, scroll all the way down, and you should see something like this: http://www.enerds.ca/files/screenshots/simple_filesharing.jpg You must "uncheck" the simple fil

Re: [PHP-WIN] fwrite error (noobie I am)

2003-07-06 Thread Ron Stephenson
That's the part I think I'm missing because when I right click on the file and go to the properties there is no "Security" tab, button or anything. It does have two check boxes one for read only (unchecked) and one for Hidden. This is the Windows Explorer version. In the IIS properties there is a

Re: [PHP-WIN] fwrite error (noobie I am)

2003-07-06 Thread Stephen March
If you right click on the file count.txt, go to properties -> security. Does "everyone" have modify/write permissions to this file? The first error it posts, is that it doesn't have permissions to alter the file.This would also account for it failing to create the stream. ~Steve Ron St

[PHP-WIN] fwrite error (noobie I am)

2003-07-05 Thread Ron Stephenson
I'm trying to learn PHP and I have it loaded on my PC with XP pro and IIS 5.1. I run the following script and receive the error below. //hit_counter1.php $counter_file = "./count.txt"; if(!($fp = fopen($counter_file, "r"))) die ("Cannot open $counter_file."); $counter = (int) fread($fp, 20); fclose