How To Check Your PHP Installation

Q

How To Check Your PHP Installation? - MySQL FAQs - PHP Connections and Query Execution

✍: FYIcenter.com

A

PHP provides two execution interfaces: Command Line Interface (CLI) and Common Gateway Interface (CGI). If PHP is installed in the \php directory on your system, you can try this to check your installation:

  • Run "\php\php -v" command to check the Command Line Interface (CLI).
  • Run "\php\php-cgi -v" command to check the Common Gateway Interface (CGI).

If you see PHP printing the version information on your screen for both commands, your installation is ok.

2007-05-10, 4652👍, 0💬