How to get PHP info to display on the command line

You are here:
  • Main
  • Ubuntu
  • How to get PHP info to display on the command line
← All Topics

To display phpinfo from the command line rather than in the browser

php -r "phpinfo

 

php -i shows default not current status