Make php command line display phpinfo page by page?

When I use the PHP CLI to get phpinfo, all I end up with is the last half. Here is the command:

> php -i

I'm not sure how this will ring? But is there a way to control the output so that the part is displayed on the piece at a time with a keystroke? Both on Windows and Linux

+3
source share
2 answers
php -i | more

should work with both Linux and Unix. On Linux, however, moreis simply an alias for the equivalentless

+7
source

On Linux you can do from the shell

php -r "phpinfo();" | less
0
source

Source: https://habr.com/ru/post/1793074/


All Articles