Hi Mirco,
thank you very much for your hints. Sorry for my late reaction, yesterday I was out of office, but I've tested a lot of hours without success. Meanwhile I have an identical environment on tow different pc's (Win 7 64 bit and XP 32 bit):
Apache 2.2.21
PHP 5.3.8
SA 16 db file xx_16.db
On both machines is a running server: dbeng16.exe -c 8m -n xxx "G:\DEMOS\DB\xxx_16.db"
On both machines I can send a ping on the running db:
dbping -d -c "Server=xxx;DBN=xxx_16;UID=DBA;PWD=sql"
C:\Users\peter>dbping -d -c "Server=xxx;DBN=xxx_16;UID=DBA;PWD=sql" SQL Anywhere-Dienstprogramm Server-Ping Version 16.0.0.1948 Verbunden mit SQL Anywhere 16.0.0.1948 Server "xxx" und Datenbank "xxx_16". Ping der Datenbank erfolgreich.
On the 32 bit XP(SP3) the following script runs succsessfull:
$connect_string = "Driver={SQL Anywhere 16};ServerName=kww;DatabaseName=kww_16;uid=dba;pwd=sql"; $conn = odbc_connect($connect_string,'',''); if($conn) { echo "okay"; } else { echo "fehler"; }
Not so on Windows 7. There is still the error message "... databaseserver not found..."
Btw, I CAN connect with a database by starting with
$conn = odbc_connect('dsnname', 'dba', 'sql');
But I still can't connect with a running db.
Best Regards,
Peter