Solved

mssql_connect() Call to undefined function

Posted on 2009-07-14
2
865 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
Group By Function Required in PDF Output 21 66
PHP $_POST vs asp request 4 58
XML loaded in a form with dropdown 6 57
Format Date 7 28
This article discusses how to create an extensible mechanism for linked drop downs.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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…

710 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