public static function getErrorMessageMissingPermissions($path)
    {
        $message = "Please check that the web server has enough permission to write to these files/directories:<br />";

        if (SettingsServer::isWindows()) {
            $message .= "On Windows, check that the folder is not read only and is writable.\n
						You can try to execute:<br />";
        } else {
            $message .= "For example, on a GNU/Linux server if your Apache httpd user is "
                        . Common::sanitizeInputValue(self::getUser())
                        . ", you can try to execute:<br />\n"
                        . "<code>chown -R ". Common::sanitizeInputValue(self::getUserAndGroup()) ." " . Common::sanitizeInputValue($path) . "</code><br />";
        }

        $message .= self::getMakeWritableCommand($path);

        return $message;
    }
public static function getErrorMessageMissingPermissions($path)
    {
        $message = "Please check that the web server has enough permission to write to these files/directories:<br />";

        if (SettingsServer::isWindows()) {
            $message .= "On Windows, check that the folder is not read only and is writable.\n
						You can try to execute:<br />";
        } else {
            $message .= "For example, on a GNU/Linux server if your Apache httpd user is "
                        . Common::sanitizeInputValue(self::getUser())
                        . ", you can try to execute:<br />\n"
                        . "<code>chown -R ". Common::sanitizeInputValue(self::getUserAndGroup()) ." " . Common::sanitizeInputValue($path) . "</code><br />";
        }

        $message .= self::getMakeWritableCommand($path);

        return $message;
    }
public static function getErrorMessageMissingPermissions ( $ path ) { $ message = "Please check that the web server has enough permission to write to these files/directories:<br />" ; if ( SettingsServer :: isWindows ( ) ) { $ message .= "On Windows, check that the folder is not read only and is writable.\n
						You can try to execute:<br />" ; } else { $ message .= "For example, on a GNU/Linux server if your Apache httpd user is " . Common :: sanitizeInputValue ( self :: getUser ( ) ) . ", you can try to execute:<br />\n" . "<code>chown -R " . Common :: sanitizeInputValue ( self :: getUserAndGroup ( ) ) . " " . Common :: sanitizeInputValue ( $ path ) . "</code><br />" ; } $ message .= self :: getMakeWritableCommand ( $ path ) ; return $ message ; }
Returns friendly error message explaining how to fix permissions

@param string $path to the directory missing permissions
@return string  Error message
Returns friendly error message explaining how to fix permissions