LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-30-2006, 09:26 PM   #1
linuxfore
LQ Newbie
 
Registered: Oct 2006
Posts: 2

Rep: Reputation: 0
question about web dev


Hi,everyone.
I want to operate a website(php+ms sql server).
The plan is like this:
the php scripts are put under linux os and the MS sql server under xp os.
what I want to know is what the problems will be .
thx
 
Old 10-31-2006, 06:11 AM   #2
senyahnoj
Member
 
Registered: Jul 2004
Location: Gloucestershire, UK
Distribution: Ubuntu, Debian & Gentoo
Posts: 74

Rep: Reputation: 16
I used PHP on linux with MSSQL on 'doze 2000 on a project last year and it was pretty much problem free. Having used PHP and MySQL before the process was pretty much identical apart from mssql_ in PHP function names rather than mysql_.

The only problem I ran into was that the MSSQL server had various databases running on the same server under difference 'instances'. The only way to get PHP to connect to them was to find out what port number the instance name mapped to and use the port number instead.

PHP Code:
$server "servername\instancename"# doesn't work
$server "servername:4440"# does work

$c mssql_connect($server,$user,$pwd);
mssql_select_db($db,$c) or die("Database connection failed"); 
This may not be an issue to you anyway. I'd suggest going right ahead and post on this forum if you do run into problems!
 
Old 10-31-2006, 07:45 PM   #3
linuxfore
LQ Newbie
 
Registered: Oct 2006
Posts: 2

Original Poster
Rep: Reputation: 0
thx for your reply.
I have finished the enviroment configuration yesterday .
linux+php+freetds and MS+mssql . It works ok
Thanks again!
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Bluefish, for all your web dev needs LXer Syndicated Linux News 1 06-01-2006 02:42 PM
Clone with dd if=/dev/hda of=/dev/hdb question wrc1944 Linux - Hardware 2 11-28-2004 09:10 AM
What's a good web dev forum pembo13 Programming 1 06-21-2004 08:01 PM
Distro recomendation for web-dev Moebius01 Linux - Newbie 2 12-06-2003 09:48 AM
newbie help with web dev setup/other issues frocco Slackware 1 08-19-2002 06:57 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration