Originally posted by LordShryku
[man]ctype_alnum[/man]
So I tried doing that, but it's still not letting me upload a file that contained what I thought to be a correct filename.
The reason is - I assigned the $_FILES['file1']['name'] to a variable called $filename. Now, $filename contains the string "file.doc" and ctype_alnum looks at this string, sees the period, and says "false".
How can I get around this?