473,513 Members | 2,453 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need a database connector in PHP? Might not need to recompile.

I just found out from someone named Frank M. Kromann in one of the
other PHP forum websites that I don't have to recompile PHP on Linux
in order to add a database connector. I've been pulling my hair out on
this issue for several days now, so I wish to publicly thank Frank M.
Kromann, whereever he is. He didn't leave a valid reply email to me,
but he's alright in my book.

Let's say you have a beautiful Linux and PHP install. Everything is
working just right for you with PostgreSQL and MySQL, and now you have
some request from management to connect something like MSSQL, but you
find out that your install of Linux doesn't come with that connector.
My install, RH9, didn't. I had already written several pages of code
with my PHP, and I didn't want to risk it by reinstalling PHP and
Apache.

So, I got FreeTDS downloaded, installed properly, and connected via
its tsql test tool (/usr/bin/tsql) to my MS SQL Servers. Now all I had
to do was make Apache and PHP recognize it.

Frank said that all I need to do is download the PHP source, then do:

../configure --with-mssql,shared
make
DO NOT DO MAKE INSTALL<<<


This creates an mssql.so file, he said. Then, he said to copy this to
the PHP extension dir. To find out where that is, just look for
mysql.so or pgsql.so on your hard drive if you already have PHP
connecting to MySQL or PostgreSQL. Or, look for imap.so.

Next, he said I have either the choice of editing my PHP.INI file, or
use the dl() function at the top of a page in order to mount this .so
file when I need it, making the mssql_* API available within PHP.

And that's it. Now all I have to do is test his process out. I'm going
to need to get the source for PHP version 4.2.2 (that's what I have
and rely on right now with RH9)...stay tuned...
Jul 17 '05 #1
0 2763

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3040
by: lawrence | last post by:
I've been bad about documentation so far but I'm going to try to be better. I've mostly worked alone so I'm the only one, so far, who's suffered from my bad habits. But I'd like other programmers...
0
2089
by: Ruud vd Velden | last post by:
Hello, We're using Office XP on Windows 2000 SP4. After installing the Oracle Connector for Outlook the following problem occurs: Emails sent by Outlook, in HTML format, do have a strange...
17
1499
by: Sam Malone | last post by:
I am trying to get details from a database. I really want to use only native VS.NET managed code "stuff" (just cuz I want to) and avoid any interop stuff. So, I'm trying to do this without using...
12
1130
by: JJ | last post by:
Looking for a database for the backend to my e-commerce web site that doesn't cost the earth. Planned on using mySQL but I gather that there is no connector compatible with asp 2.0 available...
20
4224
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
0
6308
by: mike.hudson | last post by:
I'm looking for an example of how to call a SAP RFC from within a C# program. If I have a function called "MyFunction" and it takes 1 input parameter and returns one output parameter (a table) how...
3
2897
by: arasub | last post by:
ep 20, 2007 11:25:57 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found...
0
880
by: eggy524 | last post by:
Hi, I am quite new to C# an am wanting to build a small database application. The database will be stored remotely in MySQL and the program will just be able to perform simple querys to the...
0
1466
by: yoach | last post by:
i dont the prpopties file withe db2 is this ok:? # The target database platform. torque.database = db2 # The target package to put the generated classes in. torque.targetPackage =...
0
7166
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7386
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7543
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7106
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7534
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5689
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5094
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1601
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
805
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.