Will microsofts SQL for PHP driver version 1.1 work with x64 builds of php 5.3?
It's not a general question as much as it sounds, we are currently having trouble with it. I just would like to know if someone can confirm if it works/should work or not.
Found out that it will not work on x64 builds of php. Though the x86 builds of php work fine on x64 operative systems and so will the sql driver. It is tested and confirmed for version 1.1 of the driver.
Related
I've been running in circles for about three days now. I've just set up a local SQL database and I transferred some php code I'm trying to run on it. Problem is, this php code uses the sqlsrv library and runs on a slightly older version of microsoft server.
No matter what I do, I can't get sqlsrv to load. I have quadruple checked my php.ini file, I had this problem with PHP 7, read some resources online that said sqlsrv doesn't work with php7, so I switched to php 5.6. I've tried the microsoft driver for sqlsrv for this php distribution. I've downloaded the SQL server native client.
Through all this, I can't get phpinfo() to load up sqlsrv. I've read various sources saying that sqlsrv isn't available for this version of PHP either, but I want a straight answer before I go through the motions of installing a different php.
Any help is appreciated. I've been through a lot of stack overflow questions and still couldn't find a straight answer, I'm happy to provide more information if required. (Also, I'm a noob in this kind of development, so forgive me if any of this is unclear)
Thank you!
My solution:
I ended up using an "unofficial" sqlsrv extension found here: https://onedrive.live.com/?id=669EE24817961774%21123&cid=669EE24817961774
I think I have an odd combination of 32 bit php 5.6 and Windows Server 2012. Hopefully this helps someone!
Does anyone know if there is a PHP module for Sybase Active Server Edition (ASE), compatible with version 12.5 that will work with PHP 7+ since the removal of sybase_connect I'm struggling to find a driver and according to the documentation slqsrv needs MSSQL 2005+
I do have freeTDS installed, and have looked at PDO_DBLIB but it seems that it's not really coming recommended.
I'm running on Ubuntu Server LTS.
Plan B is it worth just trying to migrate my Script to something like Python -
please not Perl it screws with my head ;-)
THe ASE OpenClient SDK contains drivers for Perl, PHP and Python.You can get this either by downloading the full SDK from the SAP support website, but it may be easier to just download the ASE Express Edition from https://www.sap.com/community/topic/ase.html.
The connectivity drivers are located in $SYBASE/OCS_16-0.
I don't know if this is the right place to ask this question, if not, please tell me where. I need to connect a php script running on wamp with an MSSQL server. I downloaded and installed the Microsoft Drivers for PHP and added the following lines in php.ini:
extension=php_sqlsrv_55_ts.dll
extension=php_pdo_sqlsrv_55_ts.dll
The weird part is that the extension is shown as loaded when I look for it in the wamp menu, and not found in phpinfo();
(thread safety is enabled, hence I use the ts version)
EDIT
I solved it, wrote the solution below. But, I still cannot get it to work on Windows Server 2008 R2 SP1. Same problem, extension is loaded in the menu, but not on the wamp homepage and phpinfo();
Success, finally.
First, I downloaded an unofficial x64 version of sqlsrv (good job Microsoft on not labeling and leaving only 32bit versions -_-)
Second, I downloaded and installed the SQL Native Client x64.
Hope this helps if anyone else has the same problem.
Đ•DIT
I still have the same problem on the same wamp installation on Windows Server 2008 R2 SP1
Do you have Visual C++ Redistributable for Visual Studio? I remember that solved one of my problems. Unfortunately I still have other ones, which I have just posted a question for. I will be trying the x64 version and see if things work. Looks like it is version 3.0, so I suppose ODBC 11 won't work with it and one would need to use native client
I'm sorry if this question ever asked before. However, I'm getting frustrate about this stuff.
Currently I'm maintenance a project, I'm using WampServer 2.0, PHP 5.2.5 and SQL Server 2005.
I've added extension=php_sqlsrv_52_ts_vc6.dll inside php.ini copy the file to php's extension. However sqlsrv_connect() in the project didn't work. I read the manual book of the project, I have to install SQL Server 2008 R2 Client Native since this project was developed by other programmer few times ago using wampserver 2.0 and SQL Server 2008. In other word, the prerequisites: - Install Driver SQLSRV20, SQL Server 2008 R2 Native Client. But, I still confuse what's SQL Server 2008 R2 Native Client used for. Do I need to install it though I use SQL Server 2005?
Please help.
Thank in advanced
Yes you do. Explained more fully here.
I've been struggling with this for a while now and I don't know what I'm missing. The error is:
call to undefined function mssql_connect()
Having looked into it already, I've done about everything I can.
I moved the php.ini file to c:\windows
In the ini I changed the extension_dir directive to c:PHP\ext and uncommented:
extension = php_mssql.dll
I moved the dll file to c:windows\system32\
I downloaded the 200.80.194.0 version of ntwdblib.dll and placed it in c:\windows\system32
I restarted my web server client
PHP is still not recognizing the function and library classes. I'm stumped as to what I didn't do right and would love some help. If it's helpful, I'm running PHP 5.3.2, IIS, and Microsoft SQL Server 2008.
For SQL Server 2008 on Windows it's sqlsrv_connect This is because Microsoft now uses the SQL Driver for PHP which is now on version 2.0 I believe.
Also it's worth noting that with sqlsrv_query, and mssql_query they switched the parameters around (spent half an hour figuring that out).
You say you are running PHP 5.3.2. The PHP manual states:
This extension is not available anymore on Windows with PHP 5.3 or later.
The PHP MSSQL library is ancient and is no longer considered a viable option.
You should instead examine PDO with either the MSSQL driver or the more reliable ODBC driver.
Microsoft are still developing their own PDO driver. Version 2 was made available June 2010. Microsoft recommend the more stable version 1.1 for production use.