Re: Install PHP with custom ODBC
| From: | phobo | Date: | Tue, 30 Jan 2001 12:53:13 +0000 |
| Subject: | Re: Install PHP with custom ODBC | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-6264@lists.php.net to get a copy of this message | ||
1. Instead of customodbc, you should
use --with-openlink=/usr/local/openlink/
2 .Are you sure it asks that odbc.h can't be found ? Or is it that you
recieve this error:
php_odbc.c: In function `odbc_column_lengths':
php_odbc.c:606: `SQLINTEGER' undeclared (first use in this function)
php_odbc.c:606: (Each undeclared identifier is reported only once
php_odbc.c:606: for each function it appears in.)
php_odbc.c:606: parse error before `len'
php_odbc.c:634: `len' undeclared (first use in this function)
make[3]: *** [php_odbc.lo] Error 1
To fix it, change line 606 : "SQLINTEGER len;" should be replaced by "SDWORD
len;"
3. You are using MS SQL. Why not use the MS SQL functions "built in" to PHP
? They are ALOT faster, more reliable etc than ODBC functions. Plus, a VERY
useful functoin, mssql_num_rows function works, whereas odbc_num_rows() does
not. See http://php.net/mssql
Siggy
----- Original Message -----
From: "WC Ip" <pwcip@itsd.gov.hk>
To: <php-db@lists.php.net>
Sent: Tuesday, January 30, 2001 10:15 PM
Subject: [PHP-DB] Install PHP with custom ODBC
>
>
> Thanks for reading my question! I would like to install PHP on Linux to
> connect MS SQL server in another computer (Win NT). I have install the
ODBC
> Client Components on Linux and OpenLink Generic 32 bit driver on Win NT.
> After configurating, the connect test is successful. So I try to start to
> install PHP, but when making, it seems that PHP cannot found the ODBC
> driver. Acutally I have install ODBC Client Components on "/usr/local".
>
> When I install PHP... I have typed...
>
> ./configure --with-custom-odbc=/usr/local --with-apache=../apache_1.3.12
> --enable-track-vars
>
> Then when making, it prompt that odbc.h cannot be found!
> Do I do anything wrong? Thanks for your help!!!
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>