![]() |
PHP renaming folder problem
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.
|
is it outside of the script parent directory?
|
the script doesnt have permissions for the folder, you'll have to chown it to a different owner with the correct delete privileges.
|
Quote:
|
It's also sort of disturbing that you advertise PHP coding, and wouldn't know something trivial like file permissions.
|
Quote:
|
are you in safe mode?
|
Quote:
|
Quote:
|
Quote:
http://www.google.com The interwebz is for porn. |
Quote:
|
Quote:
|
Who cares who owns it, when its 777 its world writable
the problem is php security can not write outside its root in safe mode |
Quote:
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. |
Quote:
|
su_exec? come on man, fill us in on required details and then the answer will present itself
|
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? |
I imagine he is unsing rename()
maybe he can't rename it because he is in it? :) |
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. |
you can try set file privilege for web..
chown www 'filename' |
Quote:
|
Quote:
He isnt providing system info, so no sense wasting brains over this one... |
All times are GMT -7. The time now is 03:46 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123