|
|
| Author |
Message |
kireol
RealPoor Master of Posts

Joined: 02 Aug 2003 Posts: 9517
Location: Royal Oak, MI
|
Posted: 01/27/05 - 13:27 Post subject: Linux PHP -> MS SQL server
|
|
|
Anyone done this? I can't figure out how to get this done.
HEPL!
|
|
|
Back to top
|
|
|
|
 |
Occulis
RealPoor Jedi

Joined: 11 Oct 2002 Posts: 13293
Location: Moral Relativity Central
|
Posted: 01/27/05 - 13:30 Post subject:
|
|
|
This is similar to asking "has anyone ever repaired a car?"
What part are you having trouble with? If google searches are eluding you, try using the acronym LAMP. Some people use LAMP to talk about Linux Apache MySQL PHP configurations.
|
|
|
Back to top
|
|
|
|
 |
kireol
RealPoor Master of Posts

Joined: 02 Aug 2003 Posts: 9517
Location: Royal Oak, MI
|
Posted: 01/27/05 - 13:32 Post subject:
|
|
|
get the 2 to talk. PHP in most configurations already works with MySQl, but not MSSQL server.
Looks like i have to use http://www.freetds.org/ but I wanted to be sure.
|
|
|
Back to top
|
|
|
|
 |
motherface
RealPoor Guru

Joined: 12 Mar 2003 Posts: 3407
|
Posted: 01/27/05 - 13:35 Post subject:
|
|
|
http://us3.php.net/mssql
The MSSQL extension is enabled by adding extension=php_mssql.dll to php.ini.
To get these functions to work, you have to compile PHP with --with-mssql[=DIR], where DIR is the FreeTDS install prefix. And FreeTDS should be compiled using --enable-msdblib.
Last edited by motherface on 01/27/05 - 13:35; edited 1 time in total
|
|
|
Back to top
|
|
|
|
 |
kireol
RealPoor Master of Posts

Joined: 02 Aug 2003 Posts: 9517
Location: Royal Oak, MI
|
Posted: 01/27/05 - 13:35 Post subject:
|
|
|
I assumed most would know to get the 2 to talk was my question by the way since it's not part of normal PHP
I guess it wasnt so obvious
|
|
|
Back to top
|
|
|
|
 |
kireol
RealPoor Master of Posts

Joined: 02 Aug 2003 Posts: 9517
Location: Royal Oak, MI
|
Posted: 01/27/05 - 13:36 Post subject:
|
|
|
| motherface wrote: | http://us3.php.net/mssql
The MSSQL extension is enabled by adding extension=php_mssql.dll to php.ini.
To get these functions to work, you have to compile PHP with --with-mssql[=DIR], where DIR is the FreeTDS install prefix. And FreeTDS should be compiled using --enable-msdblib. |
ya, is the suck, for sure. I wish things were ez!
|
|
|
Back to top
|
|
|
|
 |
motherface
RealPoor Guru

Joined: 12 Mar 2003 Posts: 3407
|
Posted: 01/27/05 - 13:38 Post subject:
|
|
|
|
Looks easy.
|
|
|
Back to top
|
|
|
|
 |
Occulis
RealPoor Jedi

Joined: 11 Oct 2002 Posts: 13293
Location: Moral Relativity Central
|
Posted: 01/27/05 - 13:39 Post subject:
|
|
|
What do you mean by "get the two to talk"? I don't mean to sound like an ass, but what do you consider the difference between PHP using MySQL and PHP using the MySQL server, as you said?
It sounds like you need aboot 2-3 hours of reading.
|
|
|
Back to top
|
|
|
|
 |
kireol
RealPoor Master of Posts

Joined: 02 Aug 2003 Posts: 9517
Location: Royal Oak, MI
|
Posted: 01/27/05 - 13:43 Post subject:
|
|
|
| Occulis wrote: | What do you mean by "get the two to talk"? I don't mean to sound like an ass, but what do you consider the difference between PHP using MySQL and PHP using the MySQL server, as you said?
It sounds like you need aboot 2-3 hours of reading.  |
there's a layer in between PHP and the database. if you are new to computers or programming you might have heard of ODBC in windows.
In this case, there's a layer missing to get PHP and MS SQL Server to talk where PHP already has this layer by default in current versions to talk to MYSQL.
I was asking the RP community if I was correct in thinking this. Which I was.
This means in order for me or anyone to get PHP to talk to a MS SQL Server, you have to install that layer, in which case, one of the choices is to grab http://www.freetds.org/
hope that helps you
|
|
|
Back to top
|
|
|
|
 |
Occulis
RealPoor Jedi

Joined: 11 Oct 2002 Posts: 13293
Location: Moral Relativity Central
|
Posted: 01/27/05 - 13:50 Post subject:
|
|
|
|
sorry never heard of computers
|
|
|
Back to top
|
|
|
|
 |
kireol
RealPoor Master of Posts

Joined: 02 Aug 2003 Posts: 9517
Location: Royal Oak, MI
|
Posted: 01/27/05 - 13:55 Post subject:
|
|
|
| Occulis wrote: | | sorry never heard of computers |
Was just trying to educate you since based off of your repsonse it didnt look like you understood how it works.
|
|
|
Back to top
|
|
|
|
 |
gotissues68
RealPoor Sensei

Joined: 21 Aug 2003 Posts: 1866
|
Posted: 01/27/05 - 15:25 Post subject:
|
|
|
|
uh educate dunn on how it works? Weren't you asking for help? Not to be rude just thought I'd point that out.. just compile in the extension der de der =) I have a script I wrote to compile all the shit I use =)
|
|
|
Back to top
|
|
|
|
 |
kireol
RealPoor Master of Posts

Joined: 02 Aug 2003 Posts: 9517
Location: Royal Oak, MI
|
Posted: 01/27/05 - 15:31 Post subject:
|
|
|
| gotissues68 wrote: | | uh educate dunn on how it works? Weren't you asking for help? Not to be rude just thought I'd point that out.. just compile in the extension der de der =) I have a script I wrote to compile all the shit I use =) |
I was asking for help yes. I've never used Sql Server with linux.
and based off of Dunns response, he sounded like he had no idea that it even existed or could exist. so I was trying to educate him.
and that's wrong?
I downloaded the link i pasted and it works fine.
|
|
|
Back to top
|
|
|
|
 |
motherface
RealPoor Guru

Joined: 12 Mar 2003 Posts: 3407
|
Posted: 01/27/05 - 15:38 Post subject:
|
|
|
Kireol f*****g owned realpoor!
OWNED m***********s!
|
|
|
Back to top
|
|
|
|
 |
Xieroth
RealPoor Sensei

Joined: 17 Oct 2002 Posts: 1902
|
Posted: 01/27/05 - 16:36 Post subject:
|
|
|
|
rofl
|
|
|
Back to top
|
|
|
|
 |
Vekril
RealPoor Guru

Joined: 15 Oct 2002 Posts: 2525
Location: Jersey
|
Posted: 01/27/05 - 16:41 Post subject:
|
|
|
wow I don't have a f*****g clue what you guys are talking about!!
<-- proud Realpoor minority who just uses computers and doesn't know the first f*****g thing about programming
|
|
|
Back to top
|
|
|
|
 |
kireol
RealPoor Master of Posts

Joined: 02 Aug 2003 Posts: 9517
Location: Royal Oak, MI
|
Posted: 01/27/05 - 16:46 Post subject:
|
|
|
| Vekril wrote: | wow I don't have a f*****g clue what you guys are talking about!!
<-- proud Realpoor minority who just uses computers and doesn't know the first f*****g thing about programming |
remember in Sandord and Son where Sanford would talk to the white cop and the black cop would have to translate for them? I was looking for the black cop and found him.
|
|
|
Back to top
|
|
|
|
 |
kemble
RealPoor Sensei

Joined: 14 Oct 2002 Posts: 1909
Location: MI
|
Posted: 01/27/05 - 16:51 Post subject:
|
|
|
The issue here was:
Dunn = talking about MySQL
Kireol = talking about MS SQL
Reading is fundamental.
|
|
|
Back to top
|
|
|
|
 |
Occulis
RealPoor Jedi

Joined: 11 Oct 2002 Posts: 13293
Location: Moral Relativity Central
|
Posted: 01/27/05 - 16:53 Post subject:
|
|
|
|
Don't worry, Vekril! You're in good company. Most paid programmers don't know the first thing about proper software development, either!
|
|
|
Back to top
|
|
|
|
 |
gotissues68
RealPoor Sensei

Joined: 21 Aug 2003 Posts: 1866
|
Posted: 01/27/05 - 16:58 Post subject:
|
|
|
|
sorry kireol I misunderstood I have been pwned =\
|
|
|
Back to top
|
|
|
|
 |
Occulis
RealPoor Jedi

Joined: 11 Oct 2002 Posts: 13293
Location: Moral Relativity Central
|
Posted: 01/27/05 - 17:01 Post subject:
|
|
|
What's 1 letter off, anyway!
PS: FREE BEER @ MY HOUSE FROM 6-6:30 TONIGHT
|
|
|
Back to top
|
|
|
|
 |
kemble
RealPoor Sensei

Joined: 14 Oct 2002 Posts: 1909
Location: MI
|
Posted: 01/27/05 - 17:06 Post subject:
|
|
|
| Occulis wrote: | What's 1 letter off, anyway!
PS: FREE BEER @ MY HOUSE FROM 6-6:30 TONIGHT |
I like newcastle.
|
|
|
Back to top
|
|
|
|
 |
Occulis
RealPoor Jedi

Joined: 11 Oct 2002 Posts: 13293
Location: Moral Relativity Central
|
Posted: 01/27/05 - 17:08 Post subject:
|
|
|
Good luck getting that p***y beer @ my place! It's "TRIPLE D TITS" BRAND.
IT'S "TRIPLE D TITS" BRAND NIGHT.
2005!
|
|
|
Back to top
|
|
|
|
 |
Nictathan
RealPoor Master of Posts

Joined: 11 Oct 2002 Posts: 5531
Location: here... where I am... not with you
|
Posted: 01/27/05 - 17:09 Post subject:
|
|
|
| Vekril wrote: | wow I don't have a f*****g clue what you guys are talking about!!
<-- proud Realpoor minority who just uses computers and doesn't know the first f*****g thing about programming |
I know stuff about computers, but go to programming and I'm just uhhhhhhhh
|
|
|
Back to top
|
|
|
|
 |
cheese
Luke Warm

Joined: 08 Dec 2004 Posts: 241
|
Posted: 01/27/05 - 18:36 Post subject:
|
|
|
| Occulis wrote: | Good luck getting that p***y beer @ my place! It's "TRIPLE D TITS" BRAND.
IT'S "TRIPLE D TITS" BRAND NIGHT.
2005! |
have you stamped a born on date yet...
Is this first round brew testing?
|
|
|
Back to top
|
|
|
|
 |
Occulis
RealPoor Jedi

Joined: 11 Oct 2002 Posts: 13293
Location: Moral Relativity Central
|
Posted: 01/27/05 - 18:37 Post subject:
|
|
|
|
The first batch will be done maturing in uhhh 2 more weeks. :O Can't wait!
|
|
|
Back to top
|
|
|
|
 |
r00typooh
RealPoor Master of Posts

Joined: 11 Oct 2002 Posts: 5178
Location: Miami, FL
|
Posted: 01/27/05 - 21:13 Post subject:
|
|
|
|
man, even i got PHP and MySQL to work! don't ask me how but i did it!
|
|
|
Back to top
|
|
|
|
 |
Zuldane
RealPoor Guru

Joined: 11 Oct 2002 Posts: 4057
Location: At sea.
|
Posted: 01/27/05 - 21:36 Post subject:
|
|
|
|
I'm having to eat Cream of Chicken Soup because I had my wisdom teeth cut out.
|
|
|
Back to top
|
|
|
|
 |
motherface
RealPoor Guru

Joined: 12 Mar 2003 Posts: 3407
|
Posted: 01/27/05 - 21:37 Post subject:
|
|
|
|
he f*****g owned us all
|
|
|
Back to top
|
|
|
|
 |
Lumberg_fekdher
RealPoor Sensei

Joined: 26 Aug 2003 Posts: 1923
|
Posted: 01/27/05 - 22:22 Post subject:
|
|
|
| Vekril wrote: | wow I don't have a f*****g clue what you guys are talking about!!
<-- proud Realpoor minority who just uses computers and doesn't know the first f*****g thing about programming |
<3 Motherface tho
Pls post the pics of the Japs eating their shit and eggs
|
|
|
Back to top
|
|
|
|
 |
|
|