From: Richard Quadling on 11 Sep 2010 06:11 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
From: "=?utf-8?B?YXNoQGFzaGxleXNoZXJpZGFuLmNvLnVr?=" on 11 Sep 2010 07:43 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" <rquadling(a)gmail.com> Date: Sat, Sep 11, 2010 11:11 Subject: [PHP] Disabling an extension on a perdir basis. To: "PHP General list" <php-general(a)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
From: Jim Lucas on 11 Sep 2010 12:56 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?
From: Richard Quadling on 11 Sep 2010 15:13 On 11 September 2010 17:56, Jim Lucas <lists(a)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
From: Jim Lucas on 11 Sep 2010 15:24 Richard Quadling wrote: > On 11 September 2010 17:56, Jim Lucas <lists(a)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
|
Next
|
Last
Pages: 1 2 Prev: Standalone WebServer for PHP Next: Elegance is the goal... Sticky form submit help |