Can anyone help me out? I'm running PHP 4.3.1 on Apache 1.3.23 with unixODBC 2.2.3. I'm using ODBC to connect to my db2 database. I was testing out some scripts that connect to a database to run select and insert statements. When I run the scripts on my test site (through the browser) everything appears to work fine. The data is displayed, the insert works and the scripts seem to work from start to finish. However, when I run my script from the command line I get the correct output - but after that I receive a segmentation fault. I think the odbc_connect statement is causing this. When I test this out on a simple php script (that only creates a connection to the db through odbc_connect), it causes a segmentation fault when run from the command line. Does anybody have any ideas or know the resolution?
Thanks in advance! Joel <?php putenv("DB2INSTANCE=db2inst1"); $conn = odbc_connect('DB','User', 'Pass'); if ($conn <= 0) { echo "Connection not set"; } ?> __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php