Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query on connecting PHP to MS SQL Server

Status
Not open for further replies.

surovi99

IS-IT--Management
Feb 11, 2005
28
US
Can somebody tell me if I need any other additional software to connect PHP to MS SQL Server? For example like Apache Server or IIS?
 
Unless you plan on running PHP command line, You would need some kind of webserver to serve up, and parse the PHP pages.

Other than that no.


----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
You need neither Apache nor IIS.

A PHP script can connect to MSSQL when run under a standalone PHP interpreter. It's just that without a web server, you can't allow interaction between web clients and your scripts.

You may need an external communications library to connect to MSSQL, depending on the OS on which you are running PHP. For example, if you are running PHP on Linux, you will need either FreeTDS or Unified ODBC and the appropriate driver to connect to MSSQL.

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top