Make PHP command line display phpinfo page by page?

gawpertron picture gawpertron · Feb 18, 2011 · Viewed 7.3k times · Source

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

> php -i

I'm not sure what it would be call? But is there a way of controlling the output so that a portion is displayed a piece at a time with the press of a key? Both on Windows and Linux

Answer

Marc B picture Marc B · Feb 18, 2011
php -i | more

should work on both Linux and Unix. On Linux, though, more is simply an alias for the equivalent less