Jump to content

[SOLVED] mssql undefined function


Recommended Posts

Hi im getting the general error

Fatal error: Call to undefined function mssql_connect() in E:\Liam\bksbvalidation\test.php on line 2

 

this is via a webpage (IIS windows 2003 server) yet when i run the same file from command line it attempts to connect. Any idea why this is different for IIS and php command line as using same extensions and php.ini file?

 

phpinfo() doesn't state that mssql extension is loaded either. I'm confused as to why it will load for command line but not IIS.

 

Regards

Liam

Link to comment
Share on other sites

for reference the issue was that ntwdblib.dll needs to be copied from your php folder to C:\windows\system32 as soon as i did this... wallah! it's working :)

 

This this is more of a note for next time i have issues :)

 

Hope it helps atleast 1 person :)

 

Liam

Link to comment
Share on other sites

The proper method is to add the path to your php installation to the Windows PATH statement (reboot to get any changes made to the Windows PATH statement to take effect.) This eliminates the need to copy any files around to get any element of the php language to work under Windows (works for IIS and Apache web servers.)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.