A place to discuss the implementation and style of computer programs.
3 posts • Page 1 of 1
- Gets Obvious Implications
- Posts: 785
- Joined: Sat Jun 09, 2007 8:38 am UTC
- Location: USA
Ok, I am making a simple thing in PHP, the thing is, it should work with most hosts. The problem is that if I upload the directory to my host, the default mode is (iirc) 0644. This will keep me from reading or writing some files that are used for temporary purposes or caching. I heard from a friend that I should avoid changing permissions due to security reasons, and you can't chmod usually unless your the owner, and to chown, you have to be a superuser...I really don't want to rely on this being true, so what should I do?
If it's temporary storage, you don't upload it. You can simply create it in the PHP script and chmod it to whatever you like. Your friend was probably trying to protect you from changing the permissions to make sure you didn't screw anything up
Who is online
Users browsing this forum: No registered users and 6 guests