How To Check Your PHP Installation

Q

How To Check Your PHP Installation? - PHP Script Tips - Downloading and Installing PHP

✍: 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-04-22, 4653👍, 0💬