Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION Warning: chmod(): Operation not permitted
#1
Does anyone know why we get this warning? I know it's related to file ownership, just wondered if anyone else noticed this.

Warning: chmod(): Operation not permitted in /var/www/html/projects/getSimple/intranet_v2/admin/inc/basic.php on line 322

code from the file is:


PHP Code:
    // debugLog('XMLsave: ' . $file . ' ' . get_execution_time());
    
if(getDef('GSDOCHMOD') === false) return $success;
    if (
defined('GSCHMOD')) {
        return 
$success && chmod($fileGSCHMOD);
    } else {
        return 
$success && chmod($file0755);
    } 


Thanks
Reply
#2
You need to be the owner of the $file.
Reply




Users browsing this thread: 3 Guest(s)