Solved

mssql_connect() Call to undefined function

Posted on 2009-07-14
2
862 Views
Last Modified: 2013-12-13
hi,

I'm using ubuntu and i'm getting the following error message:
Call to undefined function mssql_connect()

Do I need to install something?

Cheers!
0
Comment
Question by:mikesteven
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 250 total points
ID: 24849036
check out here:
http://us.php.net/manual/en/book.mssql.php
check the links:
    * Requirements
    * Installation
    * Runtime Configuration

and you should find all you need.

to check if mssql is enabled, check if there is a mssql section in the phpinfo() output.
0
 
LVL 9

Assisted Solution

by:xBellox
xBellox earned 250 total points
ID: 24849100

    The extension requires the MS SQL Client Tools to be installed    on the system where PHP is installed. The Client Tools can    be installed from the MS SQL Server CD or by copying    ntwdblib.dll from     \winnt\system32 on the server to    \winnt\system32 on the PHP box.    Copying ntwdblib.dll will only provide access    through named pipes.    Configuration of the client will require installation of all the tools.      


    Requirements for Unix/Linux platforms.      
    To use the MSSQL extension on Unix/Linux, you first need to build and     install the FreeTDS library. Source code and installation instructions     are available at the FreeTDS home page:     » http://www.freetds.org/   



The MSSQL extension is enabled by adding extension=php_mssql.dll to   php.ini.  



Write <? phpinfo() ?> to view your configuration and to be sure that MSSQL Extension is properly installed.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question