Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Introduction of common commands under PHP command line

2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report