How can you filter the extension for files being uploaded on a system via
form.

here are my codes:

## code ##
$catchfile = $_FILES['userfile']['name'];
$uploaddir = '/var/www-upload';
$uploadfile = $uploaddir . $catchfile;
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
## code ##



-- -
Louie Miranda
http://www.axishift.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to