Executing Microsoft SQL Server Stored Procedure from PHP on Linux
Learn how to setup, install and configure Apache and PHP on a Linux box to execute MS SQL stored procedures. This extensive article takes you through an in-depth look on how to achieve your ideal environment.
Scroll down the screen, you will see a section on Microsoft SQL Server.
If you have ever worked with Apache + PHP on Windows, you can compare it with the precompiled PHP thatís installed on Windows.
The difference between PHP on Windows and our compiled PHP on Linux is:
On windows, the MS SQL Server support module is running as a DLL file. In order to enable the extension, must uncomment the line from the php.ini file (also set the correct path for extensions):
On Linux, the MS SQL Server support module is compiled into libphp4.so. There is no need to load it from extensions, but I still highly recommend you to copy php.ini-recommended from the PHP source code folder into /usr/local/php, and rename it as php.ini. Using php.ini, you can easily control all the parameters for the module as needed, and load third party extension modules in the future.