Jump to content


Photo

contradicting php_info configuration command without-unixODBC

php configuration odbc unix-odbc

  • Please log in to reply
1 reply to this topic

#1 powpow

powpow
  • Members
  • PipPipPip
  • Advanced Member
  • 59 posts

Posted 18 June 2013 - 06:50 PM

Hello Freaks!

 

I recently downloaded an ODBC driver to my linux server and after confirming that I could connect and run a query through isql I tried to connection through php.  Using odbc_connect I followed the user guide to 'T' and I could not get it to work receiving the error:

 

Call to undefined function odbc_connect()

 

 

 

After searching the forums I decided to run php_info() to find out my php configuration, which is where I found:

 

 

--with-unixODBC=shared,/usr

--without-unixODBC

'./configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '-- target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '- -bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--with-mime-magic=/usr/share/file/magic.mime' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-system-tzdata' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--without-odbc' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter'

What I would like to know is how Can I remove the “without -php-odbc” and “without -unixODBC” and download/install “with-php-odbc” and “with-unixODBC” to the php configuration? 

 

Any information would be grateful, thank you in advance.

 

I am running php 5.1.6

 

 



#2 kicken

kicken
  • Gurus
  • Wiser? Not exactly.
  • 3,317 posts
  • LocationBonita, FL

Posted 18 June 2013 - 07:28 PM

Check your distro's package manager for a php odbc package and install that. You may need to edit the php.ini file to load the extension (if it doesn't do that for you).
Did I help you out? Feeling generous? I accept tips via Bitcoin @ 14mDxaob8Jgdg52scDbvf3uaeR61tB2yC7
Kicken's World⦄ ⦃Recycle old CD's




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users