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; }
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; }