Jump to content

Recommended Posts

Hi,

I would like to get some help from you. I need to build a system that PHP exec MSSQL store procedure statement. In order to do this i need to use mssql_bind. But i need to add extension into my PHP4. How can i do add extension (MSSQL)?

Note: I have done installed freeTDS (usr/local/freetds)

Or there is any way to exec MSSQL store procedure in PHP like ODBC?

Thanks for helping me.
Link to comment
https://forums.phpfreaks.com/topic/27117-how-to-add-mssql-extension-into-php4/
Share on other sites

What OS are you using? Windows, Mac or Linux (*nix)

if its Mac or Linux then you'll need to recompile PHP with the --with-mssql=[DIR] command.

[DIR] being the full path to the directory in which you have installed FreeTDS. Also make sure FreeTDS was compiled with the --enable-msdblib command. (Taken from [url=http://uk2.php.net/manual/en/ref.mssql.php]php.net[/url])

Then you'll need to uncomment/add the following line in/to the php.ini:
extension=php_mssql.dll

NOTE: if you are not using Windows then it'll be extension=php_mssql.so instead I believe.

However if you are using Windows then you don't need to bother with the above. Just uncomment/add the following line in/to the php.ini:
extension=php_mssql.dll
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.