mssql connection?

05/15/2014 19:42 D4rkWorkx#1
Hello again,

I tried to configure my homepage to connect to my dedicated server (sql server DB 2000) with this:

PHP Code:
$GLOBALS["Connect"] = mssql_connect("178.33.XXX.XX","USER","PW");

/**
 * Check connection
 */
if (!$GLOBALS["Connect"]) {
    
printf("No Connection");
    exit();

But don't matter what I do (disabed firewall, tried some sql server settings, activated tcp/ip in settings). I can't reach the database.

Any Ideas?
[Only registered and activated users can see links. Click Here To Register...]
05/15/2014 21:20 TheBrain_#2
Try this.


you may also need to enable MSSQL.DLL in your php.ini
05/15/2014 22:16 D4rkWorkx#3
Quote:
Originally Posted by TheBrain_ View Post
Try this.


you may also need to enable MSSQL.DLL in your php.ini
it is enabled...

it told me: Couldn't connect to SQL Server on 178.33.XXX.XX

edit: I checked over telnet if packets come to destination Port 1433...and yea..my pings come.

But webserver nooot <.< any idea?

edit: got it...thanks
05/15/2014 23:58 janvier123#4
mssql_connect is old history, you should use [Only registered and activated users can see links. Click Here To Register...]
05/16/2014 04:10 Decima#5
in newer versions of apache and php the old mssql dlls arent supported ;)
05/16/2014 08:21 janvier123#6
True, but if you REALLY want to use mssql connect, use Xampp 1.7.3 it still have the mssql inside