hankknight
asked on
Disable MagickWand PHP Extension
The PHP extension MagickWand is installed on my system. How can I disable it for PHP scripts located in a specific directory?
I suppose depending upon your directory structure you could turn it around and only enable the extension if in that directory.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Just not loading it first would be the simplest. This is a LOT harder if you have compiled it statically.
I'm waiting on a response from some of the core dev's, but I'm thinking that you can't disable it from 1 directory, only enable it.
I'm waiting on a response from some of the core dev's, but I'm thinking that you can't disable it from 1 directory, only enable it.
This is the reply I got and I should have though of it myself. Ho hum. Distractions due to ... well ... Facebook tells you all ...
"As I thought, looking through the docs, it looks like the only way to set the options that are only settable via the php.ini file is to use a per directory php.ini file. But, the problem with that is, it only works with the CGI/FASTCGI SAPI version of php. It won't work with the apache mod version.
So, I guess the question back to you is, what is your setup like? And if it isn't CGI/FASTCGI SAPI are you willing to change to that setup?
Read More: http://www.php.net/manual/en/configuration.file.per-user.php"
"As I thought, looking through the docs, it looks like the only way to set the options that are only settable via the php.ini file is to use a per directory php.ini file. But, the problem with that is, it only works with the CGI/FASTCGI SAPI version of php. It won't work with the apache mod version.
So, I guess the question back to you is, what is your setup like? And if it isn't CGI/FASTCGI SAPI are you willing to change to that setup?
Read More: http://www.php.net/manual/en/configuration.file.per-user.php"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you for thoughtful responses. As luck would have it, my system uses the Apache mod version of PHP.
I am trying to test a PHP-powered image manipulation application for computability issues. I will temporarily change my global php.ini file while I run the tests.
I am trying to test a PHP-powered image manipulation application for computability issues. I will temporarily change my global php.ini file while I run the tests.
Really, hmmmmmmmmm, ....
I initially thought that a combination of disable_class and disable_functions would cover it, but these are php.ini only and not httpd.conf
At this stage, I'm not finding an obvious answer.
Back in a bit with more ideas.