Exemplo n.º 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;
        }
Exemplo n.º 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;
        }