Solved

mssql_connect() Call to undefined function

Posted on 2009-07-14
2
859 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 142

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now