Get the App
SLTechnology News&Howtos  ›  Development  › 

Introduction of common commands under PHP command line

Shulou Source: shulou.com Published: 2022-06-03 19:03:40 11月12日 Update

This article introduces the knowledge of "introduction of common commands under the PHP command line". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

1. Php-m

Displays the modules compiled into the kernel

Clipboard.png

2. Php-v

Show php version number

Clipboard.png

3. Php-ini

Show profile name

Clipboard.png

4. Php-h

Show which command line commands are available

Clipboard.png

5. Php-info

View class / function / extension information, just as php uses phpinfo () on the web server

6. Php-rf

Display information about the function

7. Php-rc

Display information about the class

8. Php-re

Display information about the extension

9. Php-ri

Display extended configuration information

10. Php-rz

Displays name information about zend extensions

11. On the development of command line scripts

(1) $argv is an array containing the supplied parameters, the first of which is the name of the file

(2) $argc is the number of parameters

Eg:

We have an index.php script.

Tags: Commands information parameters commonly used number content functions files more knowledge scripts output configuration practical successful learning next kernel name dilemma actual Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft MariaDB macOS Docker Redmi