droping upload files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello. I need some help. I set my php to run script.php before any php script. I want to drop uploaded files, so I did

<?php
if ($_SERVER["SERVER_NAME"]=="some.host.on.my.server") {
if ((isset($_SERVER['REQUEST_METHOD'])) && ($_SERVER['REQUEST_METHOD']=="POST")) {
       unset($_FILES);
       unset($HTTP_POST_FILES);
       }
   } else {
   }
?>

it`s working for that host, but my question is.. if a user can upload his file on the server, despite the fact i unset all the global variables where the files are stored.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux