I'm trying to rename a folder from a php file and it's giving me an error. I'm getting a 'Permission Denied' error, but the folder chmod is 777 so I don't understand why I'm getting this error.
PHP renaming folder problem
Collapse
X
-
PHP renaming folder problem
Need design work or PHP coding? -> Offbeatideas - What's your idea?
Contact me for all your Predator integration needs!
----------------------------------
My Sites: SpeedySpank (70% ratio - Signup) - Liz Vicious Blog
AIM: practicetitoism | ICQ: 462598451Tags: None -
-
Need design work or PHP coding? -> Offbeatideas - What's your idea?
Contact me for all your Predator integration needs!
----------------------------------
My Sites: SpeedySpank (70% ratio - Signup) - Liz Vicious Blog
AIM: practicetitoism | ICQ: 462598451Comment
-
Need design work or PHP coding? -> Offbeatideas - What's your idea?
Contact me for all your Predator integration needs!
----------------------------------
My Sites: SpeedySpank (70% ratio - Signup) - Liz Vicious Blog
AIM: practicetitoism | ICQ: 462598451Comment
-
-
Yes, but there is also an OWNER of the file/folder, you fucking boob. There is a different between chroot and chown. If it's in /includes/cron then it is is most likely owned by the root user. A simple 'ls -l' will show the owner. And your script isnt being executed by the root user unless you're executing it from the command line.Comment
-
Well then how do I get around that so I can have it executed from the web?Yes, but there is also an OWNER of the file/folder, you fucking boob. There is a different between chroot and chown. If it's in /includes/cron then it is is most likely owned by the root user. A simple 'ls -l' will show the owner. And your script isnt being executed by the root user unless you're executing it from the command line.Need design work or PHP coding? -> Offbeatideas - What's your idea?
Contact me for all your Predator integration needs!
----------------------------------
My Sites: SpeedySpank (70% ratio - Signup) - Liz Vicious Blog
AIM: practicetitoism | ICQ: 462598451Comment
-
-
Thanks, I didn't think of those sites before I wasted time posting on a forum. Who would have thought those sites would have helped?Need design work or PHP coding? -> Offbeatideas - What's your idea?
Contact me for all your Predator integration needs!
----------------------------------
My Sites: SpeedySpank (70% ratio - Signup) - Liz Vicious Blog
AIM: practicetitoism | ICQ: 462598451Comment
-
Comment
-
Who cares who owns it, when its 777 its world writable
the problem is php security can not write outside its root in safe modeComment
-
When safe_mode is on, PHP checks to see if the owner of the current script matches the owner of the file to be operated on by a file function or its directory. So yes, the owner of the file matters.Comment
-
Need design work or PHP coding? -> Offbeatideas - What's your idea?
Contact me for all your Predator integration needs!
----------------------------------
My Sites: SpeedySpank (70% ratio - Signup) - Liz Vicious Blog
AIM: practicetitoism | ICQ: 462598451Comment
-
Comment
-
check for openbasedir restrictions? the user that owns it wouldn't matter, as if its chmodded to 0777 it's world writable anyways.
How are you trying to rename it? exec('mv source target') or what?Mechanical Bunny Media
Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web DevelopmentComment
-
-
I had a similar problem and it was my dumb host.... change it to 755 and try it.
It worked for me and they said it was some security shit that wouldnt let 777 work.Comment
-
Uhm, could be some sort of suexec thing which i asked about above, but don't sound right. i could see an error trying to access contents, but not rename..
He isnt providing system info, so no sense wasting brains over this one...Comment

Yikes.
Comment