Author Topic: how can 4images auto chmod to 777 for new folder?  (Read 4033 times)

0 Members and 1 Guest are viewing this topic.

Offline vietdragon

  • Newbie
  • *
  • Posts: 26
    • View Profile
how can 4images auto chmod to 777 for new folder?
« on: December 12, 2005, 09:26:49 AM »
After i creat new cat , have a new folder creat but it's chmod is 755 , how can it auto chmod to 777 ?

Thank !

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: how can 4images auto chmod to 777 for new folder?
« Reply #1 on: December 12, 2005, 02:30:05 PM »
1) try set it in includes/constants.php:
Code: [Select]
// Chmod for files and directories created by 4images
define('CHMOD_FILES', 0666);
define('CHMOD_DIRS', 0777);
2) if that doesnt work, then in admin/categories.php set it in this line:
Code: [Select]
      $result = mkdir($path, 0755);
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline vietdragon

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: how can 4images auto chmod to 777 for new folder?
« Reply #2 on: December 13, 2005, 07:09:18 AM »
Done , it working now , thanks ! :)