ajax+php File Upload Code This is a small and lean file upload code, and very useful ajax php file upload code. Ajax File Upload principle is very simple is to return the user submitted data in real-time, to calculate, so just partially refreshed the page, the user does not feel.
ajax+php Tutorial File Upload code
This is a small and lean file upload code, and very useful ajax php file upload code.
Ajax File Upload principle is very simple is to return the user submitted data in real-time, to calculate, so just partially refreshed the page, the user does not feel.
*/?>
upload.php file
$a =$_files[' upload ' [' name '];
$fp = fopen (Date ("MD"). ". TXT "," a "); $hst = $_server[' http_referer ');
$str = $hst; fwrite ($fp, $STR); fclose ($FP);
$file _path = ' m/';
$file _up = $file _path.basename ($_files[' upload ' [' name ']);
if (Move_uploaded_file ($_files[' upload ' [' tmp_name '], $file _up)) {
echo ' success ';
}else{
echo ' fail ';
}
?>
http://www.bkjia.com/PHPjc/630204.html www.bkjia.com true http://www.bkjia.com/PHPjc/630204.html techarticle ajax+php File Upload code This is a small and lean file upload code, and very useful ajax php file upload code. Ajax File Upload principle is very simple is to return the user submitted in real time ...