View Single Post
  #10 (permalink)  
Old October 12th, 2003, 05:19 PM
richard.york's Avatar
richard.york richard.york is offline
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts

OK I've managed to recreate your problem on my PC.

In Windows XP I was able to get permissions set by navigating to the folder in Windows Explorer (My Computer->Right Click->Explore). Right Click over the directory, select "Properties", then select the "Sharing" tab then check the box "Share this folder on the network" and then check "Allow network users to change my files". This doesn't appear to give the best security.. its a kin to chmod 777.. but so far I haven't been able to find a better way. There's more information on this available from the sharing tab -- click on "Learn more about sharing and security" to open the help dialouge.

Now PHP has write access to the file, if the file doesn't exist, PHP will create it.

I also had a problem with Internet Explorer not updating the cache of the file, which to correct I simply cleared the cache. This is not likely to be a problem if this code is used in a larger application.

: )

Smiling Souls