PHP Extension for Windows development
Posted on 2013-12-02
I am working on a PHP project using VS 2010 and the "PHP Tools for Visual Studio." The VS plugin is working fine and I now need to be able to test my project with a connection to a local SQL database. To do this I have downloaded and installed "Microsoft Drivers for PHP for SQL Server." I have followed the instructions for installing the driver and edited the PHP.ini file as described by the help file to load the extension:
The above DLL is in the "ext" folder for PHP and I double checked the location of the "ext" folder.
When I try to use the slqsrv_connect function in my code it is reported undefined.
The only step I was not able to perform was restarting the web server, however, as I understand it VS starts and stops the web server as debugging is started/stopped.
I hope someone can point me in the right direction to resolve this.