I have the jdbc connection string url i used in java
jdbc:sqlserver://DB-1\LDAP;databaseName=LDAPINFO
with username and password.
how to connect it in PHP? seem like i cant use JDBC in PHP?
I have the jdbc connection string url i used in java
jdbc:sqlserver://DB-1\LDAP;databaseName=LDAPINFO
with username and password.
how to connect it in PHP? seem like i cant use JDBC in PHP?
As defined here(emphasized by me):
ODBC is an open interface which can be used by any application to communicate with any database system, while JDBC is an interface that can be used by Java applications to access databases. Therefore, unlike JDBC, ODBC is language independent.
So I don't think it is possible to use JDBC
for PHP
, you can use PDO or MySQLi instead to connect to database.
You can also check here for more reference.