RE: [PHP-DB] PHP to MS SQL Package

[email protected] ("Wei, Alice J.")
Newsgroups php.db
Message-ID <950A3064BF0F8E4CB30A5931CE088BC502D34B023D@iu-mssg-mbx06.ads.iu.edu>
From: Olavi ivask [[email protected]]
Sent: Thursday, June 12, 2008 12:57 PM
To: Wei, Alice J.
Cc: [email protected]
Subject: Re: [PHP-DB] PHP to MS SQL Package

Hi,

you need to install "freetds" before compiling php.

compile php:

./configure [--with-apxs --with-mysql...]

You actually meant mssql, right? I am getting mine to connect to mssql, and not mysql.

--with-sybase=/usr/local/freetds
make
make install

Olavi Ivask

On Thu, 2008-06-12 at 12:14 -0400, Wei, Alice J. wrote:
> Hi,
>
>   I am currently using a Linux box with Fedora 9.0 and I am trying to connect PHP to a MS SQL database. All the permissions on the MS SQL database is up to date and accurate, but I consistently get errors that say
>
> PHP Fatal error:  Call to undefined function mssql_connect() in /usr/local/apache/htdocs/create_new_entry_master.php on line 20
>
> I have looked into the options of using FreeBSD, as suggested on the http://us3.php.net/manual/en/function.mssql-connect.php#83196,  but I am not sure if I could use it since I don't use a Windows Machine to run my PHP.
> Does anyone have any suggestions?
>
> Alice
> ======================================================
> Alice Wei
> MIS 2009
> School of Library and Information Science
> Indiana University Bloomington
> [email protected]
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.