This article mainly introduced the PHP batch upload picture the concrete realization method. Need friends can come to the reference, I hope to help you.
You can use the following section of code to specifically understand the PHP bulk upload pictures of the specific way. When we are learning PHP, we must accumulate experience from the actual operation to consolidate the knowledge we have learned and gradually strengthen our programming level. PHP Protection of file system specific code-sharing PHP Protection database Specific code examples • Explore the main PHP application areas • Specific application of Ajax technology based on PHP PHP the specific solution to limit the size of the uploaded file php bulk upload the picture code as follows: Code as follows: < HTML > < head > < title > uploadpicturemoreonce </title > </Head > < BODY > < form action= "" method= "Post" enctype= "Multipart/form-data" > ; > Pictures: < br /> < input type= "file" Name= "pictures[]"/> < br / > < input type= "file" Name= "pictures[]"/> < br /> < input type= "F Ile "Name=" pictures[] "/> < br /> < input type=" submit "name=" Upload "value=" Send "/& Gt </ > </form > </body > </HTML > PHP if ($_post[' upload ']== ' Send ') { $dest _folder= "picture/"; 18. if (!file_exists ($dest _folder)) {19.mkdir ($dest _folder); } foreach ($_files["Pictures"] ["Error"]as$ key = > $error) { if ($ error==upload_err_ok) { $tmp _name=$_files["Pictures"] ["tmp_name"] [$key]; $name =$_files["Pictures" ["Name"] [$key]; $uploadfile = $dest _folder $name; 26.move_uploaded_file ($tmp _name, $uploadfile); }}?> The above code is a lot of PHP upload pictures of all programming, I hope that the students need help.