Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > PHP on Linux / MS SQL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-25-07, 12:02
wehrle wehrle is offline
Registered User
 
Join Date: Jul 2005
Posts: 79
PHP on Linux / MS SQL

What is the best practice to be able to connect to a MS SQL 200/2005 database via PHP on Linux? I am aware of freeTDS, but uncertain if that is the best or common practice.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 10-25-07, 13:11
aschk aschk is offline
Registered User
 
Join Date: Mar 2007
Location: 636f6d7075746572
Posts: 734
Can I assume that the Linux servers contains Apache + PHP and that the MSSQL database resides on a windows machine?

Do you need a browser interface to the database or are you building a site that requires the ability to connect to and execute MSSQL queries?

If you're looking for a web interface to the MSSQL database then consider this : http://www.microsoft.com/downloads/d...displaylang=en

If you are however looking to create a PHP application that connects to MSSQL then a good starting point will be here : http://uk3.php.net/function.mssql-connect
Bear in mind with this latter option your MSSQL server needs to allow external connections. I'm not 100% on whether this on by default, knowing M$, probably. Security has never been their biggest priority.

Last edited by aschk : 10-25-07 at 13:18.
Reply With Quote
  #3 (permalink)  
Old 10-25-07, 21:49
wehrle wehrle is offline
Registered User
 
Join Date: Jul 2005
Posts: 79
Is there any way to use mssql_connect without installing freeTDS?
Thanks.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On