- Impact
- 20
I want to upload photos into a folder that is accessible to the world with file permissions 755. My php script only works when the permissions on the folder are 777. What can I do to make this safer? I'm running on a shared hosting account with php safe mode turned on (as always). I do not want to store the pics in a database, I just want to figure out some way to only allow my domain name or static ip to write to files and allow all others to read only.
















