freetds Class 'mssql_connect' not found

I'm using mssql server on my php scripts. I've buy new server and getting some error about usigin freetds. I've confire and install complete freetds. I'm using tsql shell command on ssh. it's working. But when I try to on Php getting some error.

Class 'mssql_connect' not found.

sql connect page :

http://renori.net/a/giris.php

php info page :

http://renori.net/a/phpinfo.php

Cheers.

Answers


Try this:

<?php ini_set('display_errors', 'On'); 
  error_reporting(E_ALL); ob_start(); 
  session_start(); 
  $mssql_sunucu="mybigserver"; 
  $mssql_tablo="ad_forum"; 
  $mssql_kullanici="sa"; 
  $mssql_parola="aa123.."; 
  $db = mssql_connect($mssql_sunucu,$mssql_kullanici,$mssql_parola); ?>

Leave new out before mssql_connect


Need Your Help

C# Where to initialize IDisposable resource - within data class or data-object-list holders class

c# oop design-patterns idisposable

I need to pick up many video files from a directory and split them into audio and video (by ffmpeg) and convert into mxf and encrypt by third party (open source) command line tools. On encryption the