[CentOS] CEntOS-5.2 & php-mssql

Adriano dos Santos Vieira (Hapia IN) harpiain at gmail.com
Fri Nov 7 14:06:30 UTC 2008

Hi, guys!

I'm trying to use php-mssql and I've tested the same php program on
two servers (CEntOS-5 and Debian).

CEntOS-5.2 (final)
- php 5.1.6-20
- php-mssql 5.1.6-15 (from "extras" repository).
- freetds 0.64-11

--------------------------- php test code --------------------------------


$conn = mssql_connect($server, $user, $pass)
          or die('Connection error');

$dbselect= mssql_select_db($db, $conn)
          or die('DB select error.');

$sql = 'select * from tbtest';

$result = mssql_query($sql);

while ($row = mssql_fetch_row($result)) {



This test code run very well on "Debian server", but not on CEntOS-5.2 (final).

What's wrong on my CEntOS-5 environment? Help me please.

Thanks in advance.


Adriano dos Santos Vieira

More information about the CentOS mailing list