Home >Backend Development >PHP Tutorial >Common commands under the php command line
This article shares with you some common commands under the PHP command line. Friends in need can refer to it
1 php -m
Display modules compiled into the kernel
2 php -v
Display php version number
## 3 php --ini
Display the configuration file name
4 php -h
Display which command line commands are available
5 php --info
View class/function/extension information, the same as using phpinfo() on the web server
Display information about the
Display information about the
Display information about the
Display the configuration of the extension
Display name information about zend extension
(2) $argc is the number of parameters
We have an index.php script
echo "Command line parameters: n";
foreach ($argv as $index =>
php Common Commands_PHP Tutorial
The above is the detailed content of Common commands under the php command line. For more information, please follow other related articles on the PHP Chinese website!