Home > Backend Development > PHP Tutorial > China's Good Voice Jin Zhiwen is not that simple. PHP implements simple image uploading

China's Good Voice Jin Zhiwen is not that simple. PHP implements simple image uploading

WBOY
Release: 2016-07-29 08:34:45
Original
1313 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 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;
}
?>



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


The above has introduced the PHP implementation of "The Voice of China, Jin Zhiwen is not that simple" to implement simple image uploading, including the content of "The Voice of China, Jin Zhiwen is not that simple". I hope it will be helpful to friends who are interested in PHP tutorials.

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