Php 5.3

Advisory: PHP 5.3 is no longer officially supported as of 30 Jun 2012. If you are using this version it is highly recommended that you make plans to upgrade to the latest version of PHP.

Php 5.3 end of lifePhp 5.3.3
  1. Jul 07, 2009 PHP 5.3 is the most significant update since version 5.0. Craig provides installation instructions for your Windows development PC and points.
  2. PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative to competitors such as Microsoft's ASP. PHP 7 is the latest stable release. Start learning PHP now ».
Php 5.3

Php 5.3.3 Vulnerabilities

Connect to an SQL Server database with PHP 5.3+ using the SQLSRV API and sqlsrv_connect. As of PHP 5.3.2 you have to use the SQLSRV API functions to connect to an MS SQL Server database from PHP. For example, use sqlsrv_connect() to create a connection resource and open a connection. The main difference with the older mssql functions of PHP is that SQLSRV requires an Array() with connection information, instead of strings.

Protip: Learn how to install the SQLSRV driver and PHP extension on Windows Server.

PHP connect to SQL Server#

An example you can use to connect, from PHP 5.3 and up, to an SQL Server with sqlsrv_connect() is:

Support for multiple PHP versions#

Suppose you want to support both older and newer versions of PHP. You can use phpversion() to check the version you’re currently using. Then use the SQL Server connect function for that specific version, like:

Xampp Php 5.3

SQLSRV Driver API Reference
You can find more information on the SQLSRV API on Microsofts MSDN website: SQLSRV Driver API Reference (Microsoft Drivers for PHP for SQL Server)

List all table names in an SQL Server database – sqlsrv_query() show tables example#

Php 5.3 Download

You can use this PHP example, using sqlsrv_query(), to perform a SHOW TABLES query:

Php 5.3+

sqlsrv_query – Prepares and executes a query.