PHP   发布时间:2022-04-09  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了php 在线打包_支持子目录大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

程序使用了PHP的zip扩展,如果服务器支持,那就可以用了^_^,生成的zip压缩包可以用winrar等来解压的,当然也可以用PHP来解压。解压的过段时间再发布了。<?PHP
$button=$POST['button'];
if($button=="开始打包")
{
$zip=newZipArchive();
$filename="./".date("Y-m-d")."
".md5(time())."_jackfeng.zip";
if($zip->open($filename,ZIPARCHIVE::create)!==TRUE){
exit("无法创建<$filename>\n");
}
$files=listdir();
foreach($filesas$path)
{
$zip->addFile($path,str_replace("./","",str_replace("\","/",$path)));
}
echo"压缩完成,共压缩了:".$zip->numFiles."个文件\n";
$zip->close();
}
Functionlistdir($start_dir='.'){
$files=array();
if(is_dir($start_dir)){
$fh=opendir($start_dir);
while(($file=readdir($fh))!==falsE){
if(strcmp($file,'.')==0||strcmp($file,'..')==0)conTinue;
$filepath=$start_dir.'/'.$file;
if(is_dir($filepath))
$files=array_merge($files,listdir($filepath));
else
array_push($files,$filepath);
}
closedir($fh);
}else{
$files=false;
}
return$files;
}
?>
<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.0Transitional//EN">


在线打包工具@H_<a href="http://code.js-code.com/tag/696/" target="_blank" class="keywords">696</a>_45@ <br><<a href="http://code.js-code.com/tag/Meta/" target="_blank" class="keywords">Meta</a><a href="http://code.js-code.com/tag/http/" target="_blank" class="keywords">http</a>-equiv="Content-Type"content="text/html;charset=gb2312"> <br></head> <br><body> <br><for<a href="http://code.js-code.com/tag/mname/" target="_blank" class="keywords">mname</a>="form1"method="post"action=""> <br><hrsize="1"> <br><h3><ahref="?">在线打包工具</h3> <br><p><inputtype="submit"name="button"value="开始打包"/></p> <br><p>说明:点开始打包,之后,就是耐心等待打包完成了,根据网站<a href="http://code.js-code.com/tag/wenjian/" target="_blank" class="keywords">文件</a>多少,需要的时间可能会很长。打包完成之后,压缩包会存放在要打包的<a href="http://code.js-code.com/tag/zhandian/" target="_blank" class="keywords">站点</a>目录下,以<spanstyle='color<a href="http://code.js-code.com/tag/r/" target="_blank" class="keywords">:r</a>ed;'>打包时间+不定长<a href="http://code.js-code.com/tag/suiji/" target="_blank" class="keywords">随机</a>字符串+jackfeng.zip这样命名,请登陆ftp后下载。</p> <br></form> <br></body> <br></html><br></p><h2>大佬总结</h2> <p>以上是<a href="http://code.js-code.com" title="http://code.js-code.com">大佬教程</a>为你收集整理的<a href="http://code.js-code.com/php/229257.html" class="article_link" target="_blank">php 在线打包_支持子目录</a>全部内容,希望文章能够帮你解决<a href="http://code.js-code.com/php/229257.html" class="article_link" target="_blank">php 在线打包_支持子目录</a>所遇到的程序开发问题。</p> <p>如果觉得<a href="http://code.js-code.com" title="http://code.js-code.com">大佬教程</a>网站内容还不错,欢迎将<a href="http://code.js-code.com" title="http://code.js-code.com">大佬教程</a>推荐给程序员好友。</p> <blockquote>本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。<br>如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。</blockquote> </div> <div class="tags text-center clearfix center-block">标签:<a href="http://code.js-code.com/tag/php/" class="tag_link" target="_blank">php</a><a href="http://code.js-code.com/tag/zaixiandabao/" class="tag_link" target="_blank">在线打包</a><a href="http://code.js-code.com/tag/zimulu/" class="tag_link" target="_blank">子目录</a></div> </div> <div class="panel panel-default"> <ul class="list-group"> <li class="list-group-item"><a href="http://code.js-code.com/php/229256.html" class="prev" target="_self"> 上一篇: php GD绘制24小时柱状图</a><a href="http://code.js-code.com/php/229258.html" class="text-muted pull-right" target="_self"> 下一篇:用PHP程序实现支持页面后退的两种...</a></li> </ul> </div> <div class="panel panel-default"> </div> <div class="panel panel-default"> <div class="panel-heading font-weight-bold">猜你在找的PHP相关文章</div> <ul class="list-group"><li class="list-group-item"> <a href="http://code.js-code.com/php/8105.html" title="php实现mysql数据库分表分段备份">php实现mysql数据库分表分段备份</a> <span class="text-muted pull-right">2019-11-12</span> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/790.html" title="php – 将Symfony2 LogoutSuccessHandler重定向到原始注销目标">php – 将Symfony2 LogoutSuccessHandler重定向到原始注销目标</a> <span class="text-muted pull-right">2019-10-03</span> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/789.html" title="用PHP读取图像中的文本">用PHP读取图像中的文本</a> <span class="text-muted pull-right">2019-10-03</span> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/788.html" title="php – MySQL守护程序无法启动 – centos 6">php – MySQL守护程序无法启动 – centos 6</a> <span class="text-muted pull-right">2019-10-03</span> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/787.html" title="扩展PHP的类型提示">扩展PHP的类型提示</a> <span class="text-muted pull-right">2019-10-03</span> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/786.html" title="如何在PHP中复制此C#散列? (toByteArray(),ComputeHash())">如何在PHP中复制此C#散列? (toByteArray(),ComputeHash())</a> <span class="text-muted pull-right">2019-10-03</span> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/785.html" title="php – 如何在Symfony2中禁用模板功能">php – 如何在Symfony2中禁用模板功能</a> <span class="text-muted pull-right">2019-10-03</span> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/784.html" title="使用PHPUnit在Silex(mock closures)中进行测试">使用PHPUnit在Silex(mock closures)中进行测试</a> <span class="text-muted pull-right">2019-10-03</span> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/783.html" title="php – 仅使用“桌面模式”浏览器检测移动用户">php – 仅使用“桌面模式”浏览器检测移动用户</a> <span class="text-muted pull-right">2019-10-03</span> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/242106.html" title="PHP调用微博接口实现微博登录的方法示例">PHP调用微博接口实现微博登录的方法示例</a> <span class="text-muted pull-right">2022-04-09</span> </li></ul> </div> <div class="panel panel-default"> <div class="panel-heading"><a href="https://www.js-code.com/all" class="font-weight-bold">其他相关热搜词</a><span class="pull-right"><a href="https://www.js-code.com/all">更多</a></span></div> <div class="panel-body list-cloud"><a href="http://code.js-code.com/tag/php/">php</a><a href="http://code.js-code.com/tag/Java/">Java</a><a href="http://code.js-code.com/tag/Python/">Python</a><a href="http://code.js-code.com/tag/chengxuyuan/">程序员</a><a href="http://code.js-code.com/tag/load/">load</a><a href="http://code.js-code.com/tag/zhong/">中</a><a href="http://code.js-code.com/tag/ruhe/">如何</a><a href="http://code.js-code.com/tag/string/">string</a><a href="http://code.js-code.com/tag/shiyong/">使用</a><a href="http://code.js-code.com/tag/canshu/">参数</a><a href="http://code.js-code.com/tag/jquery/">jquery</a><a href="http://code.js-code.com/tag/kaifa/">开发</a><a href="http://code.js-code.com/tag/anzhuang/">安装</a><a href="http://code.js-code.com/tag/list/">list</a><a href="http://code.js-code.com/tag/linux/">linux</a><a href="http://code.js-code.com/tag/ios/">ios</a><a href="http://code.js-code.com/tag/android/">android</a><a href="http://code.js-code.com/tag/gongju/">工具</a><a href="http://code.js-code.com/tag/javascript/">javascript</a><a href="http://code.js-code.com/tag/cap/">cap</a></div> </div> </div> <div class="col-sm-3"> <div style="position:fixed!important;top:334px;height:550px;z-index:9999;"> <div class="_wfhdnfcjs9"></div> <script type="text/javascript"> (window.slotbydup = window.slotbydup || []).push({ id: "u6828100", container: "_wfhdnfcjs9", async: true }); </script> <!-- 多条广告如下脚本只需引入一次 --> <script type="text/javascript" src="//cpro.baidustatic.com/cpro/ui/cm.js" async="async" defer="defer" > </script> </div> <div class="panel panel-default" style="display: none;"> <div class="panel-heading font-weight-bold">最新PHP教程</div> <ul class="list-group"><li class="list-group-item"> <a href="http://code.js-code.com/php/242106.html" title="PHP调用微博接口实现微博登录的方法示例">PHP调用微博接口实现微博登录的方法示例</a> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/242105.html" title="PHP常见数组排序方法小结">PHP常见数组排序方法小结</a> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/242104.html" title="PHP常用日期加减计算方法实例小结">PHP常用日期加减计算方法实例小结</a> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/242102.html" title="PHP封装curl的调用接口及常用函数详解">PHP封装curl的调用接口及常用函数详解</a> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/242101.html" title="PHP如何搭建百度Ueditor富文本编辑器">PHP如何搭建百度Ueditor富文本编辑器</a> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/242100.html" title="PHP htmlspecialchars() 函数实例代码及用法大全">PHP htmlspecialchars() 函数实例代码及用法大全</a> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/242098.html" title="php实现在线考试系统【附源码】">php实现在线考试系统【附源码】</a> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/242097.html" title="详解php协程知识点">详解php协程知识点</a> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/242096.html" title="php实现数字补零的方法总结">php实现数字补零的方法总结</a> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/242095.html" title="详解php用static方法的原因">详解php用static方法的原因</a> </li></ul> </div> <div class="panel panel-default" style="display: none;"> <div class="panel-heading font-weight-bold">热门PHP教程</div> <ul class="list-group"><li class="list-group-item"> <a href="http://code.js-code.com/php/8105.html" title="php实现mysql数据库分表分段备份">php实现mysql数据库分表分段备份</a> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/9790.html" title="php基于base64解码图片与加密图片还原实例">php基于base64解码图片与加密图片还原实例</a> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/6138.html" title="自定义min版smarty模板引擎MinSmarty.class.php文件及用法">自定义min版smarty模板引擎MinSmarty.class.php文件及用法</a> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/6073.html" title="php自定义中文字符串截取函数substr_for_gb2312及substr_for_utf8示例">php自定义中文字符串截取函数substr_for_gb2312及substr_for_utf8示例</a> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/4608.html" title="PHP使用preg_split()分割特殊字符(元字符等)的方法分析">PHP使用preg_split()分割特殊字符(元字符等)的方法分析</a> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/4416.html" title="PHP利用正则表达式将相对路径转成绝对路径的方法示例">PHP利用正则表达式将相对路径转成绝对路径的方法示例</a> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/4124.html" title="PHP删除二维数组中相同元素及数组重复值的方法示例">PHP删除二维数组中相同元素及数组重复值的方法示例</a> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/4079.html" title="php对xml文件的增删改查操作实现方法分析">php对xml文件的增删改查操作实现方法分析</a> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/4028.html" title="PHP判断密码强度的方法详解">PHP判断密码强度的方法详解</a> </li><li class="list-group-item"> <a href="http://code.js-code.com/php/3899.html" title="PHP简单计算两个时间差的方法示例">PHP简单计算两个时间差的方法示例</a> </li></ul> </div> </div> </div> </div> <footer id="footer"> <div class="container"> <div class="row hidden-xs"> <dl class="col-sm-4 site-link"> <dt>最近更新</dt><dd> <a href="http://code.js-code.com/webqianduan/919677.html" title="面向前端开发人员的 20 个强大的 VS Code 扩展">面向前端开发人员的 20 个强大的...</a> <span class="text-muted pull-right">2024-04-28 </span> </dd><dd> <a href="http://code.js-code.com/webqianduan/919676.html" title="面向前端开发人员的 20 个强大的 VS Code 扩展">面向前端开发人员的 20 个强大的...</a> <span class="text-muted pull-right">2024-04-28 </span> </dd><dd> <a href="http://code.js-code.com/chengxubiji/919675.html" title="Linux——(1)基本命令">Linux——(1)基本命令</a> <span class="text-muted pull-right">2022-07-21 </span> </dd><dd> <a href="http://code.js-code.com/chengxubiji/919674.html" title="【UNIAPP】上传视频,进度条的前台与后端">【UNIAPP】上传视频,进度条的前...</a> <span class="text-muted pull-right">2022-07-21 </span> </dd><dd> <a href="http://code.js-code.com/chengxubiji/919673.html" title="You can't specify target table 'xxx' for update in FROM clause的解决">You can't specify target t...</a> <span class="text-muted pull-right">2022-07-21 </span> </dd><dd> <a href="http://code.js-code.com/chengxubiji/919672.html" title="jmeter压测,将jmeter返回数据,保存到表格">jmeter压测,将jmeter返回数据,...</a> <span class="text-muted pull-right">2022-07-21 </span> </dd><dd> <a href="http://code.js-code.com/chengxubiji/919671.html" title="经典区间dp 【方块消除】">经典区间dp 【方块消除】</a> <span class="text-muted pull-right">2022-07-21 </span> </dd><dd> <a href="http://code.js-code.com/chengxubiji/919670.html" title="java-day02">java-day02</a> <span class="text-muted pull-right">2022-07-21 </span> </dd><dd> <a href="http://code.js-code.com/chengxubiji/919669.html" title="【异常】 'ascii' codec can't decode byte 0xe8 in position 2: ordinal not in range(128)">【异常】 'ascii' cod...</a> <span class="text-muted pull-right">2022-07-21 </span> </dd><dd> <a href="http://code.js-code.com/chengxubiji/919668.html" title="Django后台admin常用设置">Django后台admin常用设置</a> <span class="text-muted pull-right">2022-07-21 </span> </dd></dl> <dl class="col-sm-4 site-link"> <dt>热门文章</dt><dd> <a href="http://code.js-code.com/php/8105.html" title="php实现mysql数据库分表分段备份">php实现mysql数据库分表分段备份</a> <span class="text-muted pull-right">2019-11-12 </span> </dd><dd> <a href="http://code.js-code.com/php/9790.html" title="php基于base64解码图片与加密图片还原实例">php基于base64解码图片与加密图片...</a> <span class="text-muted pull-right">2019-11-13 </span> </dd><dd> <a href="http://code.js-code.com/php/6138.html" title="自定义min版smarty模板引擎MinSmarty.class.php文件及用法">自定义min版smarty模板引擎MinSm...</a> <span class="text-muted pull-right">2019-11-12 </span> </dd><dd> <a href="http://code.js-code.com/php/6073.html" title="php自定义中文字符串截取函数substr_for_gb2312及substr_for_utf8示例">php自定义中文字符串截取函数sub...</a> <span class="text-muted pull-right">2019-11-12 </span> </dd><dd> <a href="http://code.js-code.com/php/4608.html" title="PHP使用preg_split()分割特殊字符(元字符等)的方法分析">PHP使用preg_split()分割特殊字符...</a> <span class="text-muted pull-right">2019-11-11 </span> </dd><dd> <a href="http://code.js-code.com/php/4416.html" title="PHP利用正则表达式将相对路径转成绝对路径的方法示例">PHP利用正则表达式将相对路径转成...</a> <span class="text-muted pull-right">2019-11-11 </span> </dd><dd> <a href="http://code.js-code.com/php/4124.html" title="PHP删除二维数组中相同元素及数组重复值的方法示例">PHP删除二维数组中相同元素及数组...</a> <span class="text-muted pull-right">2019-11-11 </span> </dd><dd> <a href="http://code.js-code.com/php/4079.html" title="php对xml文件的增删改查操作实现方法分析">php对xml文件的增删改查操作实现...</a> <span class="text-muted pull-right">2019-11-11 </span> </dd><dd> <a href="http://code.js-code.com/php/4028.html" title="PHP判断密码强度的方法详解">PHP判断密码强度的方法详解</a> <span class="text-muted pull-right">2019-11-11 </span> </dd><dd> <a href="http://code.js-code.com/php/3899.html" title="PHP简单计算两个时间差的方法示例">PHP简单计算两个时间差的方法示例</a> <span class="text-muted pull-right">2019-11-11 </span> </dd></dl> <dl class="col-sm-2 site-link"> <dt>好站推荐</dt> <dd><a target="_blank" href="http://www.js-code.com">脚本宝典</a></dd> </dl> </div> <div class="copyright"> Copyright © 2019 大佬教程<br> <a href="http://www.miibeian.gov.cn/" rel="nofollow"></a> <span class="ml5">大佬教程 版权所有 <a href="https://www.miitbeian.gov.cn" target="_blank">豫ICP备15014364号-1</a></span> </div> </div> </footer> <script> (function(){ var src = "https://jspassport.ssl.qhimg.com/11.0.1.js?d182b3f28525f2db83acfaaf6e696dba"; document.write('<script src="' + src + '" id="sozz"><\/script>'); })(); </script> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?7e7b41e04f68f42525f709a1dfb50437"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <script type="text/javascript">document.write(unescape("%3Cspan id='cnzz_stat_icon_1281094757'%3E%3C/span%3E%3Cscript src='https://s4.cnzz.com/z_stat.php%3Fid%3D1281094757%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script> <script src="http://code.js-code.com/template/www/desktop/static/r_js/readmore.js" type="text/javascript"></script> <script> const btw = new BTWPlugin(); btw.init({ id: 'codeContent', blogId: '29457-1651677100115-362', name: 'DearMrGao', qrcode: 'http://code.js-code.com/res/2022/05-04/23/ea106a76a9b6f2bfc9374cb2e57301e4.jpg', keyword: '暗号', }); </script> <script type="text/javascript"> let ad = sessionStorage.getItem('codejdad') if(ad=='y'){ $("#jdad").hide(); }else{ $("#jdad").show(); } $("#jdad").click(function(){ { sessionStorage.setItem('codejdad','y') $("#jdad").hide(); window.open('https://u.jd.com/cM7PKuj'); } }) </script> </body> </html>