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@xxxxxxxxx> Date: Sat, Sep 11, 2010 11:11 Subject: [PHP] Disabling an extension on a perdir basis. To: "PHP General list" <php-general@xxxxxxxxxxxxx> 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