< Back
Get-PhpIniKey
Post
NAME Get-PhpIniKey
SYNOPSIS
Get the value of an entry in the php.ini file.
SYNTAX
Get-PhpIniKey [-Key] <String> [[-Path] <String>] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Key <String>
The key of the php.ini to get.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Path <String>
The path to a php.ini file, the path to a php.exe file or the folder containing php.exe.
If omitted we'll use the one found in the PATH environment variable.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.String
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-PhpIniKey 'default_charset'
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-PhpIniKey 'default_charset' 'C:\\Dev\\PHP\\php.ini'
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Get-PhpIniKey 'default_charset' 'C:\\Dev\\PHP'
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Get-PhpIniKey 'default_charset' 'C:\\Dev\\PHP\\php.exe'
RELATED LINKS
SYNOPSIS
Get the value of an entry in the php.ini file.
SYNTAX
Get-PhpIniKey [-Key] <String> [[-Path] <String>] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Key <String>
The key of the php.ini to get.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Path <String>
The path to a php.ini file, the path to a php.exe file or the folder containing php.exe.
If omitted we'll use the one found in the PATH environment variable.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.String
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-PhpIniKey 'default_charset'
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-PhpIniKey 'default_charset' 'C:\\Dev\\PHP\\php.ini'
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Get-PhpIniKey 'default_charset' 'C:\\Dev\\PHP'
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Get-PhpIniKey 'default_charset' 'C:\\Dev\\PHP\\php.exe'
RELATED LINKS