![]() |
PHP question
I'm using mkdir() to create folders but I can't then delete the folder. The permissions are set to 745 but I thought mkdir() would also chmod?
I'm using: mkdir($make, 0777); Any idea why? |
|
That's what I've done, unless you mean to make it reccursive?
|
Note: When safe mode is enabled, PHP checks whether the directory in which the script is operating has the same UID (owner) as the script that is being executed.
|
Are you trying to remove directories which contain files? Are you trying to remove with PHP or via FTP?
|
The folder created is owned by the "apache" user, no matter what permissions you change to you won't be able to delete it with your ftp user... (without tweaking server settings elsewhere)
|
Woj can I use chown() to change ownership to my ftp login?
|
chown() didn't work but mkdir($make, 0777); chmod($make, 0777); made directories deletable through ftp. Odd.
|
you will need to umask the user and then revert it in order to delete folders made by php.
|
Quote:
|
All times are GMT -7. The time now is 08:11 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123