This article illustrates the method of uploading images by Php+html5+ajax. Share to everyone for your reference, specific as follows:
<?php
if (isset ($_post[' upload ')) {
var_dump ($_files);
Move_uploaded_file ($_files[' upfile '] [' tmp_name '], ' up_tmp/'. Time (). Dat ');
Header (' location:test.php ');
Exit;
}
? >
More interested in PHP related content readers can view the site topics: "PHP file Operation Summary", "PHP operation and operator Usage Summary", "PHP Network Programming Skills Summary", "Basic PHP Grammar Introduction Tutorial", "PHP operation Office Document skills Summary (including Word, Excel,access,ppt), "The PHP date and time usage summary", "PHP object-oriented Programming Introduction Tutorial", "PHP string (String) Usage Summary", "Php+mysql Database operation Introduction Tutorial" and "PHP common database Operation skill Summary"
I hope this article will help you with the PHP program design.