< Back
Set-PhpIniKey
Post
NAME Set-PhpIniKey
SYNOPSIS
Sets the value of an entry in the php.ini file.
SYNTAX
Set-PhpIniKey [-Key] <String> [[-Value] <String>] [[-Path] <String>] [-Delete] [-Comment] [-Uncomment]
[<CommonParameters>]
DESCRIPTION
PARAMETERS
-Key <String>
The key of the php.ini to set.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Value <String>
The value of the php.ini key to set.
Required? false
Position? 2
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? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Delete [<SwitchParameter>]
Specify this switch to delete the key in the php.ini.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Comment [<SwitchParameter>]
Specify this switch to comment the key in the php.ini.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Uncomment [<SwitchParameter>]
Specify this switch to uncomment the key in the php.ini.
Required? false
Position? named
Default value False
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-PhpIniKey 'default_charset' 'UTF-8' 'C:\\Dev\\PHP\\php.ini'
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Set-PhpIniKey 'default_charset' 'UTF-8' 'C:\\Dev\\PHP\\php.exe'
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Set-PhpIniKey 'default_charset' 'UTF-8' 'C:\\Dev\\PHP'
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Set-PhpIniKey 'default_charset' 'UTF-8'
-------------------------- EXAMPLE 5 --------------------------
PS C:\\>Set-PhpIniKey 'default_charset' -Delete
-------------------------- EXAMPLE 6 --------------------------
PS C:\\>Set-PhpIniKey 'default_charset' -Comment
-------------------------- EXAMPLE 7 --------------------------
PS C:\\>Set-PhpIniKey 'default_charset' -Uncomment
RELATED LINKS
SYNOPSIS
Sets the value of an entry in the php.ini file.
SYNTAX
Set-PhpIniKey [-Key] <String> [[-Value] <String>] [[-Path] <String>] [-Delete] [-Comment] [-Uncomment]
[<CommonParameters>]
DESCRIPTION
PARAMETERS
-Key <String>
The key of the php.ini to set.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Value <String>
The value of the php.ini key to set.
Required? false
Position? 2
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? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Delete [<SwitchParameter>]
Specify this switch to delete the key in the php.ini.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Comment [<SwitchParameter>]
Specify this switch to comment the key in the php.ini.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Uncomment [<SwitchParameter>]
Specify this switch to uncomment the key in the php.ini.
Required? false
Position? named
Default value False
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-PhpIniKey 'default_charset' 'UTF-8' 'C:\\Dev\\PHP\\php.ini'
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Set-PhpIniKey 'default_charset' 'UTF-8' 'C:\\Dev\\PHP\\php.exe'
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Set-PhpIniKey 'default_charset' 'UTF-8' 'C:\\Dev\\PHP'
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Set-PhpIniKey 'default_charset' 'UTF-8'
-------------------------- EXAMPLE 5 --------------------------
PS C:\\>Set-PhpIniKey 'default_charset' -Delete
-------------------------- EXAMPLE 6 --------------------------
PS C:\\>Set-PhpIniKey 'default_charset' -Comment
-------------------------- EXAMPLE 7 --------------------------
PS C:\\>Set-PhpIniKey 'default_charset' -Uncomment
RELATED LINKS