LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 10-04-2010, 10:26 AM   #1
Chris Gelijkens
LQ Newbie
 
Registered: Sep 2003
Location: Sint-Niklaas,Belgium
Distribution: Mandriva 2010.1
Posts: 13

Rep: Reputation: 0
PHP/ODBC.so


I am running Mandrake 9.1 with Xampp 1.6.6 installed. I installed UnixODBC and the Mysql connector, i can connect to the MySQL test db using isql -v . In PHP (5.2.5) scripts with myqsl_connect() run fine.
I installed the PHP ODBC extension from php5-odbc-5.0.2-1mdk.i586.rpm, which puts the odbc.so in /usr/lib/php5/extensions/: i put a symbolic link to it in /opt/lampp/lib/php/extensions/non-debug-non-zts-20060613/, where php.ini apparently expects it and put a line extension=odbc.so in php.ini. Still php will not run the odbc_connect()line an any script.("undefined function...")
This is in the php startup error log:

PHP Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20060613/odbc.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20060613/odbc.so: undefined symbol: empty_string in Unknown on line 0

Any ideas ?

Thank you.
 
Old 10-05-2010, 03:11 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Hi,

My guess is that you're using the odbc extension for a different php5 version. Most likely this package is for php-5.0.2 judging from its name.

Regards
 
Old 10-12-2010, 12:54 PM   #3
Chris Gelijkens
LQ Newbie
 
Registered: Sep 2003
Location: Sint-Niklaas,Belgium
Distribution: Mandriva 2010.1
Posts: 13

Original Poster
Rep: Reputation: 0
Hi,
Probably right; I looked on the internet for the correct version, but no success. Any suggestions ?
Does the latest Mandriva distro include all this ? Maybe it is time for a new Linux box.
Maybe off-topic, but this runs like a charm on a Windows XP box...
Regards,
 
Old 10-12-2010, 05:15 PM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Hi,

Searching rpm.pbone.net, I found 2 php5-odbc packages for Mandriva (php-odbc-5.2.5-13mdv2008.1.i586.rpm and php-odbc-5.2.5-14.7mdv2008.1.i586.rpm) that fit your php version.
Hope that one of them should fit with your php installation.
 
Old 10-13-2010, 03:32 AM   #5
Chris Gelijkens
LQ Newbie
 
Registered: Sep 2003
Location: Sint-Niklaas,Belgium
Distribution: Mandriva 2010.1
Posts: 13

Original Poster
Rep: Reputation: 0
Hi,

Thank you for the links: I'll give these rpms a try.

Best wishes,
 
  


Reply

Tags
odbc, php5 apache, xampp


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 SQL + ODBC + PHP inquery wakkana12 Slackware 13 03-04-2010 05:41 PM
php excel odbc issue C-RAF. Programming 2 06-03-2006 05:54 PM
Fedora 4 - ODBC with PHP b_whelan Linux - Software 0 12-09-2005 06:54 AM
Segfault Apache PHP ODBC nbjayme Fedora 1 01-20-2004 12:27 AM
access Windows ODBC from Linux PHP Psykoral Linux - Software 2 12-15-2003 08:32 AM


All times are GMT -5. The time now is 12:18 AM.

Main Menu
Advertisement
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