Checking Your PHP Installation

Q

How To Check Your PHP Installation?

✍: Guest

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. Open a command window and run the commands below:

C:\>\php\php -v
PHP 5.2.2 (cli) (built: May  2 2007 19:18:26)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0 Copyright (c) 1998-2007 Zend Technologies

C:\>\php\php-cgi -v
PHP 5.2.2 (cgi-fcgi) (built: May  2 2007 19:18:25)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0 Copyright (c) 1998-2007 Zend Technologies

 

Requirements for Connecting PHP to MS SQL Server

Downloading and Installing PHP on Windows

SQL Server FAQs - PHP MSSQL Functions - Connections and Query Execution

⇑⇑ SQL Server Connection Tutorials

2024-04-29, 1242🔥, 0💬