Home > Article > Backend Development > China's Good Voice Jin Zhiwen is not that simple. PHP implements simple image uploading
//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 to check the file name and format, Picture 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 The size of the file (bytes)
file://$ picurl_type MIME type of the file
copy("$picurl","/where/you/want/put/the/uploaded/files/in/$picurl_name");
exit;
}
?>