You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: iis/application-frameworks/install-and-configure-php-on-iis/install-and-configure-mysql-for-php-applications-on-iis-7-and-above.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ It is recommended that you install MySQL on a dedicated server rather than insta
91
91
3. Restart the IIS service by clicking on **Start**, selecting the **Search Field**, typing **iisreset**, and then pressing ENTER.
92
92
4. If all went well, you should see the **mysqli** section on the PHP information page created earlier `http://localhost/phpinfo.php`.
Copy file name to clipboardExpand all lines: iis/application-frameworks/install-and-configure-php-on-iis/install-the-sql-server-driver-for-php.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,11 +17,11 @@ The Microsoft Drivers for PHP for SQL Server are designed to enable reliable, sc
17
17
18
18
The drivers' application programming interface (API) includes support for Active Directory authentication, transactions, parameter binding, streaming, metadata access, Unicode data handling, and error handling. The drivers rely on the Microsoft ODBC Driver for SQL Server to communicate with SQL Server. The drivers also support Microsoft SQL Azure Database, enabling developers to build PHP applications with relational capabilities using SQL Azure Database.
19
19
20
-
The Microsoft Drivers for PHP for SQL Server download is freely available to all SQL Server users. Releases and source code for the drivers are available from the [Github project page](https://github.com/microsoft/msphpsql). Full documentation for the drivers is available on [Microsoft Docs](https://docs.microsoft.com/sql/connect/php/microsoft-php-driver-for-sql-server?view=sql-server-2017); what follows is a brief overview of installation and configuration on Windows and IIS.
20
+
The Microsoft Drivers for PHP for SQL Server download is freely available to all SQL Server users. Releases and source code for the drivers are available from the [Github project page](https://github.com/microsoft/msphpsql). Full documentation for the drivers is available on [Microsoft Docs](/sql/connect/php/microsoft-php-driver-for-sql-server); what follows is a brief overview of installation and configuration on Windows and IIS.
21
21
22
22
## System Requirements
23
23
24
-
Full details on the system requirements for all supported versions of the driver can be found on the [system requirements page](https://docs.microsoft.com/sql/connect/php/system-requirements-for-the-php-sql-driver?view=sql-server-2017). The following software is required:
24
+
Full details on the system requirements for all supported versions of the driver can be found on the [system requirements page](/sql/connect/php/system-requirements-for-the-php-sql-driver). The following software is required:
25
25
26
26
- On the client machine:
27
27
- A supported Windows, Linux, or macOS operating system
@@ -35,21 +35,21 @@ Full details on the system requirements for all supported versions of the driver
35
35
36
36
The Microsoft Drivers for PHP for SQL Server can be installed using the [Web Platform Installer](https://www.microsoft.com/web/downloads/platform.aspx). To download and install the drivers manually instead, perform the following steps:
37
37
38
-
1. Download and run the installation package from the appropriate link on the [download page](https://docs.microsoft.com/sql/connect/php/download-drivers-php-sql-server?view=sql-server-2017).
38
+
1. Download and run the installation package from the appropriate link on the [download page](/sql/connect/php/download-drivers-php-sql-server).
39
39
2. Enter a directory to extract the package into when prompted.
40
40
3. Open the directory you chose in step 3 and copy the required dll libraries to your PHP extension directory. The filenames indicate which PHP version, threadedness, and architecture each dll file is for. For example, `php_sqlsrv_73_ts_x64.dll` is the 64-bit SQLSRV driver for thread-safe (ts) PHP 7.3.
41
-
4. Download and install the Microsoft ODBC Driver for SQL Server from the appropriate link on the [ODBC download page](https://docs.microsoft.com/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-2017).
41
+
4. Download and install the Microsoft ODBC Driver for SQL Server from the appropriate link on the [ODBC download page](/sql/connect/odbc/download-odbc-driver-for-sql-server).
42
42
5. Edit your `php.ini` file to add the following lines in the `Extensions` section:
Substitute the names of the files you copied to your PHP extension directory as required. Full instructions for loading the drivers can be found [here](https://docs.microsoft.com/sql/connect/php/loading-the-php-sql-driver?view=sql-server-2017).
46
+
Substitute the names of the files you copied to your PHP extension directory as required. Full instructions for loading the drivers can be found [here](/sql/connect/php/loading-the-php-sql-driver).
47
47
6. Start a command prompt as administrator and run `iisreset` to restart your IIS server.
48
48
49
49
## Configure the Drivers
50
50
51
-
1. Retrieve the current configuration settings for the SQLSRV driver using the [`sqlsrv_get_config` function](https://docs.microsoft.com/sql/connect/php/sqlsrv-get-config?view=sql-server-2017), or for the PDO_SQLSRV driver using the [`PDO::getAttribute` function](https://docs.microsoft.com/sql/connect/php/pdo-getattribute?view=sql-server-2017).
52
-
2. Change the configuration settings for the SQLSRV driver using the [`sqlsrv_configure` function](https://docs.microsoft.com/sql/connect/php/sqlsrv-configure?view=sql-server-2017), or for the PDO_SQLSRV driver using the [`PDO::setAttribute` function](https://docs.microsoft.com/sql/connect/php/pdo-setattribute?view=sql-server-2017).
51
+
1. Retrieve the current configuration settings for the SQLSRV driver using the [`sqlsrv_get_config` function](/sql/connect/php/sqlsrv-get-config), or for the PDO_SQLSRV driver using the [`PDO::getAttribute` function](/sql/connect/php/pdo-getattribute).
52
+
2. Change the configuration settings for the SQLSRV driver using the [`sqlsrv_configure` function](/sql/connect/php/sqlsrv-configure), or for the PDO_SQLSRV driver using the [`PDO::setAttribute` function](/sql/connect/php/pdo-setattribute).
53
53
3. Ensure that the drivers are loaded and verify the configuration settings by running a script that calls the phpinfo() function:
54
54
55
55
1. Open a text file, and copy the following code into it:
@@ -59,24 +59,24 @@ The Microsoft Drivers for PHP for SQL Server can be installed using the [Web Pla
59
59
3. Open a browser, and go to [http://localhost/info.php](http://localhost/info.php).
60
60
4. Scroll down the resulting page to find the `sqlsrv` and `pdo_sqlsrv` sections. Confirm that the drivers are loaded and the configuration settings are set to the default values (see Figure 1).

63
63
64
64
*Figure 1: SQL Server configuration settings page*
65
65
66
66
## Create a Connection to the Database
67
67
68
-
When using the SQLSRV driver, the [`sqlsrv_connect()` function](https://docs.microsoft.com/sql/connect/php/sqlsrv-connect?view=sql-server-2017) is used to establish a connection to the server. When using the PDO_SQLSRV driver, the [`PDO::__construct` function](https://docs.microsoft.com/sql/connect/php/pdo-construct?view=sql-server-2017) is used to establish a connection to the server.
68
+
When using the SQLSRV driver, the [`sqlsrv_connect()` function](/sql/connect/php/sqlsrv-connect) is used to establish a connection to the server. When using the PDO_SQLSRV driver, the [`PDO::__construct` function](/sql/connect/php/pdo-construct) is used to establish a connection to the server.
69
69
70
-
Connections can be made using [Windows authentication](https://docs.microsoft.com/sql/connect/php/how-to-connect-using-windows-authentication?view=sql-server-2017), [SQL Server authentication](https://docs.microsoft.com/sql/connect/php/how-to-connect-using-sql-server-authentication?view=sql-server-2017), or [Azure Active Directory authentication](https://docs.microsoft.com/sql/connect/php/azure-active-directory?view=sql-server-2017). The default is to use Windows authentication. In most scenarios, this means that the Web server's process identity or thread identity (if the Web server is using impersonation) is used to connect to the server, not a user's identity.
70
+
Connections can be made using [Windows authentication](/sql/connect/php/how-to-connect-using-windows-authentication), [SQL Server authentication](/sql/connect/php/how-to-connect-using-sql-server-authentication), or [Azure Active Directory authentication](/sql/connect/php/azure-active-directory). The default is to use Windows authentication. In most scenarios, this means that the Web server's process identity or thread identity (if the Web server is using impersonation) is used to connect to the server, not a user's identity.
71
71
72
72
## Links for Further Information
73
73
74
74
-[Microsoft Drivers for PHP for SQL Server](https://github.com/microsoft/msphpsql)
75
-
-[Download the Microsoft Drivers for PHP for SQL Server](https://docs.microsoft.com/sql/connect/php/download-drivers-php-sql-server?view=sql-server-2017)
76
-
-[Overview of the Microsoft Drivers for PHP for SQL Server](https://docs.microsoft.com/sql/connect/php/overview-of-the-php-sql-driver?view=sql-server-2017)
-[SQLSRV Example Application](/sql/connect/php/example-application-sqlsrv-driver)
79
+
-[PDO_SQLSRV Example Application](/sql/connect/php/example-application-pdo-sqlsrv-driver)
80
80
-[PHP Homepage](http://php.net/)
81
81
-[Whitepaper: Accessing SQL Server Databases with PHP](https://social.technet.microsoft.com/wiki/contents/articles/1258.accessing-sql-server-databases-from-php.aspx)
82
82
-[Drivers for SQL Server Team Blog](https://techcommunity.microsoft.com/t5/SQL-Server/bg-p/SQLServer/label-name/SQLServerDrivers)
Copy file name to clipboardExpand all lines: iis/configuration/system.webServer/webSocket.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ The `<webSocket>` element specifies the use of the WebSocketModule module with A
35
35
2. In **Server Manager**, click the **Manage** menu, and then click **Add Roles and Features**.
36
36
3. In the **Add Roles and Features** wizard, click **Next**. Select the installation type and click **Next**. Select the destination server and click **Next**.
37
37
4. On the **Server Roles** page, expand **Web Server (IIS)**, expand **Web Server**, expand **Application Development**, and then select **WebSocket Protocol**. Click **Next**.
 .
39
39
5. On the **Select Features** page, click **Next**.
40
40
6. On the **Confirm installation selections** page, click **Install**.
41
41
7. On the **Results** page, click **Close**.
@@ -44,7 +44,7 @@ The `<webSocket>` element specifies the use of the WebSocketModule module with A
44
44
45
45
1. On the **Start** screen, move the pointer all the way to the lower left corner, right-click the **Start** button, and then click **Control Panel**. - In **Control Panel**, click **Programs and Features**, and then click **Turn Windows features on or off**.
46
46
2. Expand **Internet Information Services**, expand **World Wide Web Services**, expand **Application Development Features**, and then select **WebSocket Protocol**.

48
48
3. Click **OK**.
49
49
4. Click **Close**.
50
50
@@ -78,7 +78,7 @@ For more information, see [IWebSocketContext interface](/iis/web-development-ref
78
78
5. Select **system.webServer/webSocket** in the **Section** text box.
79
79
6. Set `enabled` to **True** to enable webSocket or **False** to disable webSocket. Set **pingInterval** and **receiveBufferLimit** to the desired values.
0 commit comments