By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,731 Members | 1,123 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,731 IT Pros & Developers. It's quick & easy.

php_sqlite.dll "Access Denied"

P: n/a
I tried to install the sqlite extension to PHP using "php_sqlite.dll",
but I get the following error message:

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-

Jul 17 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Which user did you give permissions to and to which folder/alias?

topmind wrote:
I tried to install the sqlite extension to PHP using "php_sqlite.dll",
but I get the following error message:

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-
Jul 17 '06 #2

P: n/a
topmind wrote:
I tried to install the sqlite extension to PHP using "php_sqlite.dll",
but I get the following error message:

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?

Jul 17 '06 #3

P: n/a

Chung Leong wrote:
topmind wrote:
I tried to install the sqlite extension to PHP using "php_sqlite.dll",
but I get the following error message:

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-

Jul 18 '06 #4

P: n/a
topmind wrote:
I got the file at:

http://pecl4win.php.net/ext.php/php_sqlite.dll
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.
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-
Jul 18 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.