Home > php教程 > PHP源码 > php文件上传代码(带图片预览效果)(1/2)

php文件上传代码(带图片预览效果)(1/2)

WBOY
Release: 2016-06-08 17:26:26
Original
1391 people have browsed it

图片上传一般都是直接上传了,现在我们写的一款php 图片上传代码,可以在图片预览效果,这样可以方便查看你上传图片的效果哦。

<script>ec(2);</script>
 代码如下 复制代码


php文件上传代码(带图片预览效果)(1/2)


php文件上传代码(带图片预览效果)(1/2)


 //require_once("class/uploadfile.class.php");
 if($_request['act']=='add'){
 $maximg=$_files['flashpic'];
 $minimg=$_files['flashpics'];
 $upload=new uploadfile;
 $fmaxpath="no_picture.gif";
 $fminpath="no_picture.gif";
 if(!empty($maximg['tmp_name']))
 {
 $fmaxpath=$upload->upload($maximg,'upfiles/');
 
 }
 if(!empty($minimg['tmp_name']))
 {
 $fminpath=$upload->upload($minimg,'upfiles/');
 }
 }
?>
首页 1 2 末页
Related labels:
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template