#42354 [NEW]: DSN connection not working!
| From: | kereteam dot designs at gmail dot com | Date: | Mon, 20 Aug 2007 20:15:19 +0000 |
| Subject: | #42354 [NEW]: DSN connection not working! | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-116378@lists.php.net to get a copy of this message | ||
From: kereteam dot designs at gmail dot com
Operating system: WinXP
PHP version: 5.2.3
PHP Bug Type: ODBC related
Bug description: DSN connection not working!
Description:
------------
I am trying to access an MS Access DB on the web, I have created a DSN
name for it (through the server's control interface).
The connection script works fine on my own personal computer and I can
insert and delete records. Not so when I try on the web server.
The DSN name I assigned is KeretlawDB, and it stores the path of the .mdb
file on the server (..\db\keretlaw.mdb)
Reproduce code:
---------------
$link = odbc_connect ('KeretlawDB', '', '');
if (!$link) {
echo "Connection to ODBC failed: ", odbc_errormsg(), "<br>";
} else {
echo "Connection to ODBC successfull. NO PASSWORD REQUIRED <br>";
}
Expected result:
----------------
There should be a connection established, and I should be able to retrieve
/ insert information.
Should have echoed:
Connection to ODBC successfull. NO PASSWORD REQUIRED
Actual result:
--------------
Connection to ODBC failed: [Microsoft][ODBC Microsoft Access Driver] The
Microsoft Jet database engine cannot open the file '(unknown)'. It is
already opened exclusively by another user, or you need permission to view
its data.
--
Edit bug report at http://bugs.php.net/?id=42354&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42354&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42354&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42354&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42354&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=42354&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42354&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42354&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42354&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42354&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42354&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=42354&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=42354&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42354&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42354&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42354&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42354&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42354&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42354&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42354&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42354&r=mysqlcfg