Re: [PHP] Disabling an extension on a perdir basis.
On 12 September 2010 09:19, David Robley robl...@aapt.net.au wrote: Richard Quadling wrote: On 11 September 2010 20:24, Jim Lucas li...@cmsws.com wrote: 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 Thanks for that. FastCGI. Will do some more work on it now. If you are wanting to disable parsing of php files on a per-directory basis, you can do this via .htaccess using php_flag engine 1|0 (or on|off if you prefer) http://php.net/manual/en/apache.configuration.php#ini.engine Rather well hidden - took me a few minutes to dig it out :-) Cheers -- David Robley If you would know a man, observe how he treats a cat. Today is Setting Orange, the 36th day of Bureaucracy in the YOLD 3176. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I'm helping someone else, so not my setup. They want to disable the gmagick extension. I'm waiting for him to get back to me on system setup. I'm not exactly sure why this extension requires disabling in a single directory ... All things I should have asked first, but my first impression was that there was no way to do a ... -extension=php_gmagick.dll (or .so). I'm thinking about a shared hosting where a user may have a conflict between their own classes and an extension's. Namespaces could be the answer here, but you can't just put a 1 liner in and have all the code fixed. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Disabling an extension on a perdir basis.
On 11 September 2010 20:24, Jim Lucas li...@cmsws.com wrote: 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 Thanks for that. FastCGI. Will do some more work on it now. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Disabling an extension on a perdir basis.
Richard Quadling wrote: On 11 September 2010 20:24, Jim Lucas li...@cmsws.com wrote: 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 Thanks for that. FastCGI. Will do some more work on it now. If you are wanting to disable parsing of php files on a per-directory basis, you can do this via .htaccess using php_flag engine 1|0 (or on|off if you prefer) http://php.net/manual/en/apache.configuration.php#ini.engine Rather well hidden - took me a few minutes to dig it out :-) Cheers -- David Robley If you would know a man, observe how he treats a cat. Today is Setting Orange, the 36th day of Bureaucracy in the YOLD 3176. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Disabling an extension on a perdir basis.
Hi. Can't seem to see a way to do this. Is there a way to do this? -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Disabling an extension on a perdir basis.
If you want to prevent certain extensions then just flirt then out from the $_FILES array before you copy them out of the temp directory, as that is where they should be uploaded ready for your script to process. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: Richard Quadling rquadl...@gmail.com Date: Sat, Sep 11, 2010 11:11 Subject: [PHP] Disabling an extension on a perdir basis. To: PHP General list php-general@lists.php.net Hi. Can't seem to see a way to do this. Is there a way to do this? -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Disabling an extension on a perdir basis.
Richard Quadling wrote: Hi. Can't seem to see a way to do this. Is there a way to do this? Are you talking about a PHP extension or a file extension? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Disabling an extension on a perdir basis.
On 11 September 2010 17:56, Jim Lucas li...@cmsws.com wrote: Richard Quadling wrote: Hi. Can't seem to see a way to do this. Is there a way to do this? Are you talking about a PHP extension or a file extension? I sat there for about a minute reading Ashley's comment, thinking what the f__k is he talking about!. Then your comment made it all make sense. I want to disable a PHP extension from 1 directory. Initially I thought that I could use disable_class and disable_function ini options, but these are php.ini only (according to the docs). -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Disabling an extension on a perdir basis.
Richard Quadling wrote: On 11 September 2010 17:56, Jim Lucas li...@cmsws.com wrote: Richard Quadling wrote: Hi. Can't seem to see a way to do this. Is there a way to do this? Are you talking about a PHP extension or a file extension? I sat there for about a minute reading Ashley's comment, thinking what the f__k is he talking about!. Then your comment made it all make sense. I want to disable a PHP extension from 1 directory. Initially I thought that I could use disable_class and disable_function ini options, but these are php.ini only (according to the docs). 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 Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php