LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-09-2003, 07:04 PM   #1
Psykoral
LQ Newbie
 
Registered: Jun 2003
Distribution: Mandrake 9.1
Posts: 20

Rep: Reputation: 0
Unhappy access Windows ODBC from Linux PHP


Ok, so here's my issue. I'm trying to pull data from an ODBC that I do not have access to other then a DSN, username and pass (and the tables).
I mention this because I cannot install any software or make any configuration changes on this box.

The linux box is Mandrake 9.1.

Currently, the odbc_connect command is giving this error in my php:
Fatal error: Call to undefined function: odbc_connect()

I have installed unixODBC, mdbtools, and mdbtools-odbc.....and php-odbc SAYS it's installed... but I think the phpinfo() thinks different...

"package php-odbc-4.2.3-8 is already installed".

The linux box is on an internal network so I can't link you to the direct server, however here is the output of the phpinfo() from the box, moved to a public server:

http://mail.flippydisk.com/phpinfo.html

Just ask if you need any additional info.
 
Old 12-10-2003, 12:48 PM   #2
Psykoral
LQ Newbie
 
Registered: Jun 2003
Distribution: Mandrake 9.1
Posts: 20

Original Poster
Rep: Reputation: 0
Any help?
 
Old 12-15-2003, 07:32 AM   #3
pedro_nf
Member
 
Registered: Sep 2003
Location: France
Distribution: RedHat
Posts: 58

Rep: Reputation: 15
normaly odbc_connect will be available after installing php-odbc
You must restart the web server (httpd if linux)!
Check in php.ini file if you have the module activated (extension=odbc.so)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MS access ODBC for linux eloviyandhi Programming 3 06-23-2005 12:37 AM
Segfault Apache PHP ODBC nbjayme Fedora 1 01-19-2004 11:27 PM
How can I use Apache&ODBC to access a M$ SQL2000 Database??? x86br Linux - General 1 01-28-2003 12:47 AM
ODBC Microsoft Access for Linux gokussj Linux - General 6 08-01-2002 04:54 AM
ODBC Access and Linux JohnBradshaw Linux - Networking 8 07-18-2002 10:37 AM


All times are GMT -5. The time now is 03:52 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration