FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

LinkBack Thread Tools
Old 11-07-2008, 01:06 PM
"Adriano dos Santos Vieira (Hapia IN)"
Default CEntOS-5.2 & php-mssql

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
CentOS mailing list

Thread Tools

All times are GMT. The time now is 07:38 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org