php在线解压zip压缩文件
php在线解压zip压缩文件br / 一个文件大小为4.1 KB 相当实用br / 以下分享部分代码br / 使用技巧:br / 1.压缩成zip格式br / 2.压缩方式最好选择为[较好]br / 3.压缩目录中的根目录最好不要有0kb的
php在线解压zip压缩文件
一个文件大小为4.1 KB 相当实用
以下分享部分代码
使用技巧:
1.压缩成zip格式
2.压缩方式最好选择为[较好]
3.压缩目录中的根目录最好不要有0kb的文件否则可能导致解压失败
完整代码下载地址: http://www.ctdisk.com/file/3755819
一个文件大小为4.1 KB 相当实用
以下分享部分代码
使用技巧:
1.压缩成zip格式
2.压缩方式最好选择为[较好]
3.压缩目录中的根目录最好不要有0kb的文件否则可能导致解压失败
完整代码下载地址: http://www.ctdisk.com/file/3755819
部分代码如下 <?php header("content-Type: text/html; charset=utf-8"); //验证密码 $password = "123456"; ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>在线解压ZIP文件程序 V1.0</title> <style type="text/css"> <!-- body,td{ font-size: 14px; color: #000000; } a { color: #000066; text-decoration: none; } a:hover { color: #FF6600; text-decoration: underline; } --> </style> </head> <body> <form name="myform" method="post" action="<?=$_SERVER[PHP_SELF];?>" enctype="multipart/form-data" onSubmit="return check_uploadObject(this);"> <? if(!$_REQUEST["myaction"]): ?> <script language="javascript"> function check_uploadObject(form){ if(form.password.value==''){ alert('请输入密码.'); return false; } return true; } </script> <table width="100%" border="0" cellspacing="0" cellpadding="4"> <tr> <td height="40" colspan="2" style="color:#FF9900"><p><font color="#FF0000">在线解压ZIP文件程序 V1.0</font></p> <p>使用方法:把zip文件通过FTP上传到本文件相同的目录下,选择zip文件;或直接点击“浏览...”上传zip文件。</p> <p> </p> </td> </tr> <tr> <td width="11%">选择ZIP文件: </td> <td width="89%"><select name="zipfile"> <option value="" selected>- 请选择 -</option> <? $fdir = opendir('./'); while($file=readdir($fdir)){ if(!is_file($file)) continue; if(preg_match('/\.zip$/mis',$file)){ echo "<option value='$file'>$file</option>\r\n"; } } ?> </select></td> </tr> <tr> <td width="11%" nowrap>或上传文件: </td> <td width="89%"><input name="upfile" type="file" id="upfile" size="20"></td> </tr> <tr> <td>解压到目录: </td> <td><input name="todir" type="text" id="todir" value="" size="15"> (留空为本目录,必须有写入权限)</td> </tr> <tr> <td>验证密码: </td> <td><input name="password" type="password" id="password" size="15"> (源文件中设定的密码)</td> </tr> <tr> <td><input name="myaction" type="hidden" id="myaction" value="dounzip"></td> <td><input type="submit" name="Submit" value=" 解 压 "></td> </tr> </table>
精彩图集
精彩文章