Phpscripts For Mssql Server

Website Scripts for your Helbreath Server.
Stik
Member
Posts: 135
Joined: Thu Jun 10, 2004 4:59 pm

Post by Stik »

Hi i'm getting the same error where it tries to conect to the DB.
Anyone solved this yet pls.
wannabee
Loyal fan
Posts: 270
Joined: Sun Dec 21, 2003 12:42 am

Post by wannabee »

well, first goto where your php.ini is and make shore that your mssql moduel is installed:
Installation
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.
i can't download the file because every time i do, it tells me to log in. but if more errors occure, i'll re-write the script for php :P


edit:<!--QuoteBegin-binarydata+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (binarydata)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->no, thats mysql
php dun work with mssql
nood[/quote]YOUR WRONG! :o (i know this because they did it with MU online so ) :P
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Human knowleag belongs to THE WORLD<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>So i highly dislike people who keep to their proud selfs... thats why i wanna share everything i got with you guys :D
RageIlluminati
Outpost bitch
Posts: 559
Joined: Wed Mar 30, 2005 6:45 am

Post by RageIlluminati »

well.. in our php scripts we describe connection like this:

&#036;our_connection = mssql_pconnect("localhost","sa","password");

mssql_select_db("ws1",&#036;our_connection);

and yes.. php scripts work with MSSQL server...
<img src='http://helbreath.pri.ee/userbars/hbest-gamemaster2.jpg' border='0' alt='user posted image' /> <img src='http://helbreath.pri.ee/userbars/hbsoccer-owner.jpg' border='0' alt='user posted image' /> <img src='http://helbreath.pri.ee/userbars/scorpa-rider.jpg' border='0' alt='user posted image' /> <img src='http://helbreath.pri.ee/userbars/logout-master.jpg' border='0' alt='user posted image' /> <br>.<br>................................Ego sum Rage, flagellum Dei!<br><br>The problem with America is stupidity. I'm not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? (bash.org)
tyteman
Spamtastic
Posts: 1149
Joined: Wed Nov 12, 2003 2:00 pm
Location: CA, USA

Post by tyteman »

asp does work better but causes more lag for your server.. php = weak but still works.. i recommend using php because asp = more complex to setup ... especially considering all the os are win xp now..
"<i>One night I was talking to God, but I realized I was talking to <u>myself</u></i>"<br><br><img src='http://img61.imageshack.us/img61/2678/untitled13bf.gif' border='0' alt='user posted image' /><br><br><b><u>Links</u></b><br>
wannabee
Loyal fan
Posts: 270
Joined: Sun Dec 21, 2003 12:42 am

Post by wannabee »

1) php does not lag server more because i tryed, in 1 seconds it can produce 1000+ lines of output and i did the same with asp and it produced a small 700+ (depends on what your using, i use apache)

2) asp isn't comples, it's just drag and drop into IIS on windows XP

3) although MS SQL is native to asp, it's not always the best choice.

and finaly, i found asp easyer to script than php
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Human knowleag belongs to THE WORLD<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>So i highly dislike people who keep to their proud selfs... thats why i wanna share everything i got with you guys :D
Post Reply