Home > Article > Backend Development > PHP implements simple image upload_PHP tutorial
//File upload. Linux+apache+php3/4 test passed. iis test failed, win+apache+php not tested
if ($HTTP_POST_VARS["upload"]=="upload"){
file://Here you can add Check the file name, format, image size and other functions,
file://$picurl The full path of the local system
file://$picurl_name The temporary file name after uploading
file://$picurl_size file Size (bytes)
file://$picurl_type MIME type of the file
copy("$picurl","/where/you/want/put/the/uploaded/files/in/ $picurl_name");
exit;
}
?>