How do I give PHP write access to a directory?
Posted
by SGWebsNow
on Stack Overflow
See other posts from Stack Overflow
or by SGWebsNow
Published on 2010-05-24T22:10:40Z
Indexed on
2010/05/24
22:31 UTC
Read the original article
Hit count: 210
I'm trying to use PHP to create a file, but it isn't working. I am assuming this is because it doesn't have write access (it's always been the problem before). I tried to test if this was the problem by making the folder chmod 0777, but that just ended up making every script in that directory return a 500 error message until I changed it back. How do I give PHP write access to my file system so it can a create a file?
Edit: It is hosted on Hostgator shared hosting using Apache.
© Stack Overflow or respective owner