2013年8月23日

php上传文件处理

摘要: 通过 PHP,把文件上传到服务器。创建一个文件上传表单 index.html 请选择文件: 创建上传脚本 upload_file.php 2097152){ echo '上传文件不得大于2M'; exit; } //检查上传文件类型 $ftype = $files['type']; if(!in_array($ftype,$uptypes)){ //in_array 检查数组中是否存在... 阅读全文

posted @ 2013-08-23 16:21 风林幻海 阅读(303) 评论(0) 推荐(0) 编辑

导航