[ale] php and unixODBC

Fulton Green ale at FultonGreen.com
Thu Jul 25 14:03:57 EDT 2002


Admittedly, I'm speaking WAAAAY outta my league, but ...

... isn't the whole purpose of unixODBC to abstract away most of the vendor-
specific details of database interaction?

The real question I would ask is just what and where the nastygram
regarding the odbc_connect() function (which is most likely in unixODBC)
occurs. I'm guessing it's somewhere in PHP. In Red Hat, PHP breaks up the
database functionality into separate packages. I specifically remember
php-pgsql, php-mysql, php-jdbc and php-odbc (the last of which is the glue
between PHP and unixODBC).

Once you get PHP compiled w/ODBC (or, better yet, grab the appropriate
packages from your distro of choice), it's then just a matter of figuring
out how to specify the Sybase connection parms (most likely the hostname,
username, password, and perhaps an optional protocol spec).

On Thu, Jul 25, 2002 at 01:49:23PM -0400, Taylor Robison wrote:
> I've never set up php to use sybase, but I have couple ideas about whats 
> wrong.  To compile sybase support for php, you will need to have a set 
> of headers that explain to php how to use the sybase API.  I had this 
> problem with php and mysql once and it turned out I had forgotten to 
> install the development headers package.
> 
> If that is not the problem, perhaps you need to edit /etc/php.ini to 
> configure php to "turn on" the sybase functions.
> 
> Taylor
> 
> Gary MacKay wrote:
> 
> > Does anyone have a working apache, php4, unixODBC setup? My main goal 
> > is to attach to my sybase ASA server which is also running on linux. I 
> > have read and re-read so many how-to's and tried and re-tried them 
> > all. None of them have worked for me yet. No matter how I compile 
> > apache/php/unixODBC, I still get "undefined function odbc_connect()" 
> > errors. Nothing I have done has helped or hindered it. So many people 
> > have posted that they just installed it and it worked. What am I 
> > possibly missing?

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list