LinuxQuestions.org
Help answer threads with 0 replies.
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 05-01-2008, 12:00 PM   #1
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Rep: Reputation: 35
How To Configure PHP5 CLI and ODBC


I have lots of information about configuring ODBC and PHP5, and I am confused as to which, if not both, odbc.ini files to configure. I keep getting this error when running a simple php program from CLI.

Warning: odbc_connect(): SQL error: [unixODBC][Driver Manager]Data source name n
ot found, and no default driver specified, SQL state IM002 in SQLConnect in
/hom
e/ics/scratch/test.php on line 7

where line 7 is the odbc_connect call in my test.php file.

I am more interested in figuring out the relationship of all this stuff so I can understand how to solve it than getting "the problem solved". If anyone has any ideas, I would appreciate it.

BTW: php is installed fine, and a command line program that calls phpinfo(); works just fine. Informix is installed correctly. Its native tools and Perl's DBI can talk to one of several Informix DBs I work with. It's just getting the relationship between PHP and Informix that's confusing me, and I am keeping Apache out of this.
 
  


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
problem when installing and configure PHP5 ketut_hendratha Linux - Newbie 2 08-22-2006 09:48 PM
How to configure MySql ODBC julian.osorio Linux - Software 1 06-09-2006 04:02 AM
configure php5 and mysql issue jiawj Programming 1 08-17-2005 04:34 PM
php5 configure with different php.ini file dtra Linux - Software 2 01-19-2005 09:04 PM
./configure php5 error - log included Transition Linux - Newbie 4 07-16-2004 09:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration