大雀软件园

首页 软件下载 安卓市场 苹果市场 电脑游戏 安卓游戏 文章资讯 驱动下载
技术开发 网页设计 图形图象 数据库 网络媒体 网络安全 站长CLUB 操作系统 媒体动画 安卓相关
当前位置: 首页 -> 技术开发 -> PHP专区 -> 文件上传程序的全部源码

文件上传程序的全部源码

时间: 2021-07-31 作者:daque

1.upfile.php文献 <html> <body> <title>文献上传</title> <form enctype="multipart/form-data" action=upload.php method=post> <input type=file name=upfile size=10><br><br> <input type=submit value='上载文献'> </form> </body> </html> 2.upload.php <? //博得暂时日子消息,并贯穿变成一个字符串 $datetime = getdate(); $time = implode("",$datetime); //结构文献名 //$filename="uploadfiles/".$time." ".$upfile_name; $filename="uploadfiles/".$upfile_name; //将文献本质的寄存在效劳器上 $copymes = copy($upfile,$filename); if ($copymes) {     print("文献上传胜利!<br>n");     print("文献名:$upfile_name<br>n");     print("上传的文献巨细:$upfile_size<br>n"); } else  print("文献上传波折!<br>n"); if (($upfile_type=="image/gif")||($upfile_type=="image/pjpeg")) { //即使是图形文献方法则显之 echo "<p><img src='"; echo $filename; echo "'height=150 width=150 align=center border=0>"; } ?> 3.请在上头的谁人文献地方目次创造一个目次 uploadfiles 就不妨了  【正文版权归作家与奥索网共通具有,如需连载,请证明作家及根源】    

热门阅览

最新排行

Copyright © 2019-2021 大雀软件园(www.daque.cn) All Rights Reserved.