Il 22/09/2011 17:54, Eric ha scritto: > if(preg_match('(.*)^[A-Za-z0-9]+', $_POST['username']) !== 0) { Whi this '(.*)'? For '.' and '..' problem use is_file(). Bye, Marco -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php