I am on Windows 7 using XAMPP and am trying to write file to the default install location of C:\xampp\htdocs using a PHP script but I am getting write failures. I can write to my own user area. How can I allow PHP to write to C:\xampp\htdocs?

link|improve this question

80% accept rate
feedback

1 Answer

You need to take into account the security Windows 7 has in place.
Make sure that the user which apache is running with has permissions to access and write to that location.

or you could try pointing the htdocs folder to another location such as your own home folder.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.