|
From: Tim H. <tim...@op...> - 2008-05-12 12:27:02
|
Todd Geist wrote: > Hello, > > I have been trying to connect to ODBC database with the default PHP > and Apache setup that comes on leopard. Apache 2.2.6 php 5.2.4. > > I have been unable to get it to work. I get an error saying that > Apache has dropped the connection. This only happens when I reference > and DSN, if I put in an incorrect DSN the coonection is not dropped > and I get an error about not finding the DSN. > > I have been following some old threads on compiling php, with iODBC on > the mac, but I am not sure what is required today. The tutorial on > building iODBC and PHP on iODBC.org id 4 years old and references > PHP4. > > Is there any more up to date docs? > > Do we need to recompile PHP 5.2.6 with iODBC to get this to work. > > Any hekp would be greatly appreciated > Hi, Could you post the output of: a) <?php php_info(); ?> , just the sections for configure options and anything to do with (i)ODBC later on b) locate the php shared library and run otool -L on it to see what libraries / frameworks it's linked with I'd also recommend enabling tracing in the odbc.ini it's using: http://www.iodbc.org/index.php?page=docs/faq#iodbc234151489 says how. Thanks, ~Tim -- Tim Haynes Product Development Consultant OpenLink Software <http://www.openlinksw.com/> |