Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8756301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:02:57+00:00 2026-06-13T14:02:57+00:00

Possible Duplicate: PHP Fatal error: Call to undefined function mssql_connect() I am developing a

  • 0

Possible Duplicate:
PHP Fatal error: Call to undefined function mssql_connect()

I am developing a light-weight PHP application which accesses a remote SQL server db.

So far, I am out of luck in getting connection setup to SQL Server db through my PHP script.

I keep getting this error when I am trying to connect to sql DB:

Fatal error: Call to undefined function mssql_connect()

I get similar error when I try sqlsrv_connect($myServer, $myUser, $myPass) too

Here is what I have already tried:

I search for solution on web for hours, but nothing works.

I downloaded drivers from http://www.microsoft.com/en-us/download/details.aspx?id=20098
and unzipped them into php/ext folder

modified php.ini to add newly downloaded drivers lines:

extension=php_sqlsrv_54_ts.dll
extension=php_pdo_sqlsrv_54_ts.dll

[sqlsrv]
sqlsrv.LogSubsystems = 1
sqlsrv.LogSeverity = 1
sqlsrv.WarningReturnAsErrors = 0

Restarted the Apache server

But, see phpinfo() output it doesn’t have sqlserv in it http://bit.ly/TkMC6V

Just so you know, I am developing this on my windows machine by installing EasyPHP. This website will be deployed on a Unix box. I tried to connect sql server through php on both Windows and Unix machine without any success.

Version info:

SQL Server 9.0.5000    
PHP ver 5.4.6    
Apache 2.4

I just dont get sqlsrv in my phpinfo() as mentioned in this question PHP Fatal error: Call to undefined function mssql_connect()

Is there a different way to install the drivers, other than what I have outlined above?

Let me know if you need more info.
Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T14:02:58+00:00Added an answer on June 13, 2026 at 2:02 pm

    I found the issue, by looking at phpInfo() output carefully

    Loaded Configuration File   C:\Program Files (x86)\EasyPHP-12.1\apache\php.ini
    

    I was modifying php.ini in php directory.
    But, I needed to modify the one in apache directory

    I can delete this silly question.
    But, I think it might be helpful for someone facing similar issue.

    Jeez , I spent 4 hour on this stupid issue. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: PHP Fatal error: Call to a member function Execute() on a non-object
Possible Duplicate: PHP ToString() equivalent I get this error: Catchable fatal error: Object of
Possible Duplicate: WAMP Stack PHP Fatal error: Class ‘SoapClient’ not found I downloaded a
Possible Duplicate: php loop through associative arrays i have a variable which prints an
Possible Duplicate: PHP function to strip tags, except a list of whitelisted tags and
Possible Duplicate: php loop through associative arrays i have this piece of code which
Possible Duplicate: Reference - What does this error mean in PHP? I had a
Possible Duplicate: Removing a function at runtime in PHP I have a script that
Possible Duplicate: php mail() function on localhost I am using php mail(). I have
Possible Duplicate: PHP Error: mysql_fetch_array() expects parameter 1 to be resource, boolean given I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.