Okay, there are two servers I'm working with: 1) My host server (PHP v.4.3.8) and 2) the company's server (PHP v.4.3.3). On the company server, I can read from a file, but can't write to the file. In other words:
is_readable($file) = true
is_writable($file) = false
But when I run the code on my server, it works fine. Safe mode is OFF. I tried chmod 0600 on my server and it worked, but it doesn't work on company server. I've yet to try 0777 (I have to send files to another employee to upload so it takes awhile to see if anything works.) So here are my questions:
If chmod 0777 works, what security problems does that create? What I need is once a regular web user visits a php page, a file is written to. What chmod mode should I use to allow that, and minimize security risks?
If chmod 0777 doesn't work, where should I go from there? What other problems might there be?
I'm sorry I didn't wait to see if 0777 worked before posting here, but the deadline is in the next couple of days and I need to be prepared once I get the results of the 0777 test back. Thanks for your help!