Re: accesing SQL Base with PHP - 06-22-2006 , 09:54 AM
Dear Mr. Escalada,
it is possible to access SQLBase from PHP.
We use the following method:
1. ODBC driver from SQLBase
2. System data source with the above ODBC driver (It is important to
use system data sources - computer data sources doesn't work!)
3. PEAR-DB in PHP
The connection string is:
<User> = Username and <Password> = password (e.g. SYSADM:SYSADM)
<DSN> is the name of your ODBC data source and <DB> is the wished
database you want to be connected with.
Here a short PHP-Script:
$dsn = 'odbc://SYSADM:SYSADM@CenturaDB/Test';
$conn = DB::connect($dsn, TRUE);
// Perform some actions....
print "Connection error..."
Hope it helps.
With the best regards from Germany
Dr. Klaus-Dieter Remmler