php-pcntlHow to check if PCNTL is enabled in PHP?
To check if PCNTL is enabled in PHP, you can use the phpinfo()
function. This will output information about the current PHP installation, including whether PCNTL is enabled.
<?php
phpinfo();
Output example
...
pcntl
PCNTL Support => enabled
...
Alternatively, you can use the php -m
command to list all the modules that are enabled in the current PHP installation. If PCNTL is enabled, it will be listed in the output.
$ php -m
[PHP Modules]
...
pcntl
...
Helpful links
More of Php Pcntl
- How to install PCNTL for PHP in Debian?
- How to use pcntl_wifexited in PHP?
- How to use pcntl_signal in PHP?
- How to use PCNTL alarm in PHP?
- How to prevent zombie processes with the PCNTL_FORK function in PHP?
- How to get the process ID with PHP PCNTL?
- How to use PCNTL signals in PHP?
- How to use pcntl_wait in PHP?
- How to use pcntl_fork in PHP?
See more codes...