[PHP] How to Execute phpinfo() from Command Line

Tadashi Shigeoka ·  Fri, January 20, 2012

I was taught how to execute phpinfo() from the Linux command line, so here’s a memo.

# php -r 'phpinfo();'

Of course, the output goes to the command line, so it’s quite hard to read, but it might be useful to remember when you want to check quickly.

That’s all from the Gemba.