Page 1 of 1

Submitting a file

Posted: Sun Apr 11, 2004 3:34 pm
by HaVoC
I know the code for a person to click browse and upload their files, but how do I actually get the file to upload? I mean how do you make the file upload to a certain folder ect. Thanks!

Posted: Sun Apr 11, 2004 3:38 pm
by bytte
hey, you should check out the move_uploaded_file () function.

http://www.php.net/move_uploaded_file

Posted: Sun Apr 11, 2004 3:53 pm
by Deemo
there is a super glocal known as $_FILES. look that up on php.net

Posted: Sun Apr 11, 2004 4:01 pm
by vigge89

Posted: Sun Apr 11, 2004 4:25 pm
by HaVoC
Thanks!

Posted: Sun Apr 11, 2004 4:34 pm
by HaVoC
Is there a funciton that can delete files aswell? And how can I restrict certain extensions?