RE: [PHP] Fatal error: Call to undefined function: odbc_connect()
| From: | Andrew Hill | Date: | Thu, 08 Aug 2002 13:53:40 +0000 |
| Subject: | RE: [PHP] Fatal error: Call to undefined function: odbc_connect() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-111649@lists.php.net to get a copy of this message | ||
Keith,
I suggest recompiling --with-iodbc, as per the HOWTOs at www.iodbc.org.
Then you can use whichever ODBC driver you like.
Once you have ODBC support compiled in, you can verify it by looking at
the output of a phpinfo(); command.
Please let me know if you require additional information.
Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software http://www.openlinksw.com
Universal Data Access & Virtuoso Universal Server
-----Original Message-----
From: Bob Lockie [mailto:bjlockie@lockie.ca]
Sent: Wednesday, August 07, 2002 3:29 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Fatal error: Call to undefined function:
odbc_connect()
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' , '', '' );
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php