'Something like' was supposed to imply that the code wasn't complete. You still need to provide the code up to $filename = $name . $extension;.
Note that running CGI code from the command line, or under the debugger or in a suitable IDE can speed debugging up a lot!
In reply to Re^3: extension check on upload script doesn't do anything
by GrandFather
in thread extension check on upload script doesn't do anything
by edwardra3
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |