Re: [PHP] Re: Recompiling PHP with mssql

This is a discussion on Re: [PHP] Re: Recompiling PHP with mssql within the PHP General forums, part of the PHP Programming Forums category; On Thu, August 23, 2007 9:45 am, Colin Guthrie wrote: > Dan Shirah wrote: >> You shouldn't ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-27-2007
Richard Lynch
 
Posts: n/a
Default Re: [PHP] Re: Recompiling PHP with mssql

On Thu, August 23, 2007 9:45 am, Colin Guthrie wrote:
> Dan Shirah wrote:
>> You shouldn't need to recompile PHP.
>>
>> Just go into your PHP.ini file and uncomment the line:
>> ;extension=php_mssql.dll
>>
>> After that you can go to the [MSSQL] section of the .ini file and
>> change the
>> rest of the settings however you want them. IE. Allow persistent
>> connections, timeouts etc.
>>
>> Then, just use the mssql_ functions to create, connect, query SQL
>> Server.

>
> That completely depends on how the original PHP was compiled.
>
> If the original was not compiled with mssql support then it wont work.


If the OP was actually on Windows, this would actually work.

The DLL in question *is* the compilation of mssql support, assuming it
is the same version as the php.exe (or php .dll for modules)

> Also I reckon the windows .dlls will not work on the OP's redhat
> server......


Correct.

The OP could use rpm and/or up2date to just get the php-mssql package
if they installed from rpm to start with.

If they compiled from source, they should be able to go back to the
source and ./configure --with-mssql=shared, and then make and then
copy the php-mssql.so file into their extensions dir.

However, it is probably easier to just do:
../config --with-mssql
make
make install
if you compiled from source in the first place.

--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:07 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0