Hey,
I have a problem which seems to be quite hard to track down the bogus at.
I've created a program that makes new directories under a user/ directory automatically when a new person registers. So when a user registers he gets his own dir with his name (e.g. LostOblivion gets a dir called LostOblivion/ in the user/ dir). I'm going to write/read to these dirs later on, so I made PHP change the chmod setting to 0777 for those dynamic dirs. I have also set the user/ dir to 0777.
So, when I upload images to this dir (e.g. user/LostOblivion/mypic.jpg) later on the move_uploaded_file() func returns false and won't move the file.
The funny part is that when I check out the chmod setting for the user/LostOblivion dir it's set to what I want (full access, 0777) but it behaves like it doesn't have this chmod. But if I go in, delete the old, and make the dir myself with 0777 everything works.
My server is running safe_mode=1, but shouldn't the chmod() func return false then???!
I actually tried to chmod it using the mkdir() func together with making the dir, but that didn't really work, so I did it with the chmod() func...
Thx for any help in advance. =)