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 1042003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:26:20+00:00 2026-05-16T15:26:20+00:00

So on my test machine, I had PHP installed with Apache, and I had

  • 0

So on my test machine, I had PHP installed with Apache, and I had the PHP SQL Driver (not the Microsoft one). So, I used mssql_connect() and such commands to deal with the database.

When I shifted to another server, it has Microsoft PHP SQL Driver. Now it is crashing and showing me error of PHP_via_FastCGI error, whenever I execute the mssql_connect() and the other mssql_ php commands.

Could you please advise on how to solve this? Do I need to change my code to something else? If that is the case, I have hundreds of files, do I need to change in each?

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-05-16T15:26:21+00:00Added an answer on May 16, 2026 at 3:26 pm

    You will need to map (change) all the DB calls in the application to the Microsoft driver’s equiv functions or create an abstraction layer. An abstraction layer is where you make up your own db functions like: myConnect(...)
    myEXEC(...)

    and within that you have code like

    if ($givenDriver=='M') { 
        code using microsoft DB function 
    } elseif ($givenDriver=='P') { 
        code using the PHP DB function 
    } else { 
        error unknown connection type
    }
    

    then everywhere in your code convert from the actual PHP driver commands to your abstraction layer commands. Then the code can easily switch between using one driver or another by changing the value of $givenDriver.

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

Sidebar

Related Questions

I have Test controller and Test agent installed on a virtual machine VM1. Test
More specifically I want to test whether Oracle ODP.Net is installed on a machine.
Short and sweet version: On one machine out of around a hundred test machines
I want to test some PHP on my local machine running Windows XP Professional.
I had creating git repository Test on git and installed git on my windows
I had a working installation of VS2010 that I used heavily on this machine
I have a virtual machine (VMware) with Mercury Quick Test Professional 9.2 installed. I
On my local test machine it works fine, but on the server it will
Say I have a build machine and test machine and the source code is
Is there any virtual machine to test Android? How can I debug the program

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.