Jump to content

Apache+php+unixODBC don't work in linux


Taxinha

Recommended Posts

Hello,

I have a pc with Linux and with an oracle 10.2g data base. I also have an web application in php and I use the functions odbc to connect to the data base

The drivers to connect is unixODBC and they work fine (I tested with isql and works). I also test with the php client and works too.
But when I try to access with apache+php I have the following error in odbc_connect:
Warning: odbc_connect() [function.odbc-connect]: SQL error: [unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failed, SQL state IM004 in SQLConnect in /home/scatex/MAN/sxbin/weblists/htdocs/scripts/ligacao.inc.php on line 44

Anyone have any idea? [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /]
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.