PHP Warning: Unknown(): Unable to load dynamic
library './php_sqlite.dll' - Access is denied. in Unknown on line 0
I am using IIS on Windows XP for development only. It is Php version
4.3.2. I added all permissions I could, including "write". It is
finding the DLL okay because if I rename it I get a "not found" message
instead. I cannot tell what the fudge is denying access to what and
why.
Any help would be appreciated.
-t-
That error looks awfully familiar. I've encountered it before while
trying to build the SQLite extension. I can't quite remember what the
cause is though. I think it's because the DLL is compiled using VC8 and
the file is missing its embedded SxS manifest. Where did you get the
file?
I got the file at:
http://pecl4win.php.net/ext.php/php_sqlite.dll
Perhaps I should also try the 4.4.0 and 4.4.1 versions.
As a last resort, I am thinking about having PHP run SQLite from System
or Exec command line instead of futzin' with DLL's. This is only for
development anyhow. As long as I wrap the functions that access and
parse Sqlite command-results, in theory it would run the same as it
would on a production server with SQLite installed right.......in
theory. I would install PHP5 which is supposed to have SQLite compiled
in, but I have other stuff tied to it. If I upgrade, I'll probably get
a whole new batch of funny incompatibility messages and have to upgrade
all the other gizmos too.
Thanks so far....
-t-
Hmmm, the DLL is compiled with VC6 as it should... My initially guess
was wrong. I've seen this before. It's some kind of DLL Hell problem.
Try running Dependency Walker on the file on your system. Here's where
to get it:
http://www.dependencywalker.com/
It'll say that PHP4TS.dll can't be found. That's normal.
The extension loads correctly on my copy of 4.3.6.