PHP implements simple image upload_PHP tutorial

WBOY
Release: 2016-07-21 16:02:13
Original
1125 people have browsed it

//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;
}
?>



accept="image/x-png,image/gif,image/jpeg">

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/316624.htmlTechArticle//File upload. Linux+apache+php3/4 test passed. The iis test failed, win+apache+php did not test?php if ($HTTP_POST_VARS[upload]==Upload){ file://Here you can add the check file name,...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template