Re: Fatal error: Call to undefined function: odbc_connect()
| From: | Bob Lockie | Date: | Wed, 07 Aug 2002 20:29:02 +0000 |
| Subject: | Re: Fatal error: Call to undefined function: odbc_connect() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-111581@lists.php.net to get a copy of this message | ||
SequeLink is still alive. :-)
I used that middleware in 1995.
It was a nice product. :-)
A recompile is enough.
Remember to do a 'make clean' and 'rm config.cache'.
>I am using SegueLink and MySQL. The connection test is fine, so I am
>reasonably sure that the RaQ server can find the M$ Access database. The
>problem is that the odbc_connect command is not being recognized. I think
>that I need to recompile php with --with-odbc as part of the configuration.
>However, I do not know what else is need to compile php for the Cobalt RaQ4
>servers. I read the documentation from php.net and it indicates to do these
>three steps:
>
>10. ./configure --with-mysql --with-apxs=/www/bin/apxs
>11. make
>12. make install
>
>I think I only need to add --with-odbc after the --with-mysql. However, can
>I simply recompile php? Or do I need to uninstall it and recompile it?
>--
>Keith Roberts
>IT Manager
>Laptops For Less
>2995 White Star
>Anaheim, CA 92806
>(714) 224 - 3980
>http://www.laptopsforless.com
>----- Original Message -----
>From: "Andrew Brampton" <andrew@bramp.freeserve.co.uk>
>To: "Keith Roberts" <keith@getadeal.com>; <php-general@lists.php.net>
>Sent: Wednesday, August 07, 2002 12:54 PM
>Subject: Re: [PHP] Fatal error: Call to undefined function: odbc_connect()
>
>
>> As far as I know the linux PHP can't connect to a Windows M$ Access
>> database...
>> I think you either need to use PHP under windows, or find some linux ODBC
>> driver, OR use MySQL :)
>>
>> Someone tell me if I'm wrong on this, thanks
>> Andrew
>> ----- Original Message -----
>> From: "Keith Roberts" <keith@getadeal.com>
>> To: "php-general @ lists.php.net" <php-general@lists.php.net>
>> Sent: Wednesday, August 07, 2002 8:45 PM
>> Subject: [PHP] Fatal error: Call to undefined function: odbc_connect()
>>
>>
>> > I am getting this error when trying to connect to a MS Access database.
>I
>> > do think that it is the connection that is failing, it is the function:
>> >
>> > Fatal error: Call to undefined function: odbc_connect() in
>> > /home/sites/home/web/phptest.htm on line 37
>> >
>> > What am I doing wrong or what have I missed. Here is a snippet of the
>> code
>> > that I am using:
>> >
>> > $cnx = odbc_connect( 'SLSocket' , '', '' );