< Back
Disable-PhpExtension
Post
NAME Disable-PhpExtension
SYNOPSIS
Disables a PHP extension.
SYNTAX
Disable-PhpExtension [-Extension] <String[]> [[-Path] <String>] [-Comment] [<CommonParameters>]
DESCRIPTION
Disables a PHP extension (if it's enable and if it's not a builtin extension).
PARAMETERS
-Extension <String[]>
The name (or the handle) of the PHP extension to be disabled.
You can specify more that one value.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Path <String>
The path to the PHP installation.
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
-Comment [<SwitchParameter>]
Specify this switch to comment the line in the php.ini file instead of removing it
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:\\>Disable-PhpExtension gd
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Disable-PhpExtension gd,mbstring
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Disable-PhpExtension gd C:\\Path\\To\\Php
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Disable-PhpExtension gd C:\\Path\\To\\Php -Comment
RELATED LINKS
SYNOPSIS
Disables a PHP extension.
SYNTAX
Disable-PhpExtension [-Extension] <String[]> [[-Path] <String>] [-Comment] [<CommonParameters>]
DESCRIPTION
Disables a PHP extension (if it's enable and if it's not a builtin extension).
PARAMETERS
-Extension <String[]>
The name (or the handle) of the PHP extension to be disabled.
You can specify more that one value.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Path <String>
The path to the PHP installation.
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
-Comment [<SwitchParameter>]
Specify this switch to comment the line in the php.ini file instead of removing it
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:\\>Disable-PhpExtension gd
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Disable-PhpExtension gd,mbstring
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Disable-PhpExtension gd C:\\Path\\To\\Php
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Disable-PhpExtension gd C:\\Path\\To\\Php -Comment
RELATED LINKS