示例#1
0
        public object GetPHPIniPhysicalPath()
        {
            if (!ManagementUnit.Context.IsLocalConnection)
            {
                return null;
            }

            PHPConfigHelper phpConfig = new PHPConfigHelper(ManagementUnit);
            string phpiniPath = phpConfig.GetPHPIniPath();

            if (String.IsNullOrEmpty(phpiniPath))
            {
                RaiseException("ErrorPHPIniNotFound");
            }

            return phpiniPath;
        }
示例#2
0
        private PHPIniFile GetPHPIniFile()
        {
            PHPConfigHelper phpConfig = new PHPConfigHelper(ManagementUnit);
            string phpiniPath = phpConfig.GetPHPIniPath();

            if (String.IsNullOrEmpty(phpiniPath))
            {
                RaiseException("ErrorPHPIniNotFound");
            }

            PHPIniFile file = new PHPIniFile(phpiniPath);
            file.Parse();

            return file;
        }