php打包网站并在线压缩为zip

前端之家收集整理的这篇文章主要介绍了php打包网站并在线压缩为zip前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

本文实例介绍了PHP打包网站并在线压缩为zip的方法分享给大家供大家参考,具体内容如下

PHP;">  <a href="https://www.jb51.cc/tag/PHP/" target="_blank" class="keywords">PHP</a> ZIP压缩程序@H_<a href="https://www.jb51.cc/tag/404/" target="_blank" class="keywords">404</a>_6@ <style type="text/css"> <!-- html{background:#f9f9f9;}body{background:#fff;color:#333;font-family:sans-serif;margin:2em auto;width:700px;padding:1em 2em;-moz-border-radius:11px;-khtml-border-radius:11px;-webkit-border-radius:11px;border-radius:11px;border:1px solid #dfdfdf;}a{color:#2583ad;text-decoration:none;}a:hover{color:#d54e21;}h1{border-bottom:1px solid #dadada;clear:both;color:#666;font:24px Georgia,"Times New Roman",Times,serif;margin:5px 0 0 -4px;padding:0;padding-bottom:7px;}h2{font-size:16px;}p,li,dd,dt{padding-bottom:2px;font-size:12px;line-height:18px;}code,.code{font-size:13px;}ul,ol,dl{padding:5px 5px 5px 22px;}a img{border:0;}abbr{border:0;font-variant:normal;}#logo{margin:6px 0 14px 0;border-bottom:none;text-align:center;}.step{margin:20px 0 15px;}.step,th{text-align:left;padding:0;}.submit input,.button,.button-secondary{font-family:sans-serif;text-decoration:none;font-size:14px!important;line-height:16px;padding:6px 12px;cursor:pointer;border:1px solid #bbb;color:#464646;-moz-border-radius:15px;-khtml-border-radius:15px;-webkit-border-radius:15px;border-radius:15px;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;-khtml-box-sizing:content-box;box-sizing:content-box;}.button:hover,.button-secondary:hover,.submit input:hover{color:#000;border-color:#666;}textarea{border:1px solid #bbb;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;}.form-table{border-collapse:collapse;margin-top:1em;width:100%;}.form-table td{margin-bottom:9px;padding:10px;border-bottom:8px solid #fff;font-size:12px;}.form-table th{font-size:13px;text-align:left;padding:16px 10px 10px 10px;border-bottom:8px solid #fff;width:130px;vertical-align:top;}.form-table tr{background:#f3f3f3;}.form-table code{line-height:18px;font-size:18px;}.form-table p{margin:4px 0 0 0;font-size:11px;}.form-table input{line-height:20px;font-size:15px;padding:2px;}.form-table th p{font-weight:normal;}#error-page{margin-top:50px;}#error-page p{font-size:12px;line-height:18px;margin:25px 0 20px;}#error-page code,.code{font-family:Consolas,Monaco,monospace;}#pass-strength-result{background-color:#eee;border-color:#ddd!important;border-style:solid;border-width:1px;margin:5px 5px 5px 1px;padding:5px;text-align:center;width:200px;display:none;}#pass-strength-result.bad{background-color:#ffb78c;border-color:#ff853c!important;}#pass-strength-result.good{background-color:#ffec8b;border-color:#fc0!important;}#pass-strength-result.short{background-color:#ffa0a0;border-color:#f04040!important;}#pass-strength-result.h3{background-color:#c3ff88;border-color:#8dff1c!important;}.message{border:1px solid #e6db55;padding:.3em .6em;margin:5px 0 15px;background-color:#ffffe0;} .mydirname {color:#F00;} .myfilename {color:#649ABE;} .currentdir {font-size:14px;font-family: Georgia,Consolas;font-weight:bold;} #footer {text-align:center;margin-top:20px;} --> </style> </head> <body> <form name="myform" id="myform" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>"> <h1 style="color:#2583ad;">在线压缩ZIP<a href="https://www.jb51.cc/tag/wenjian/" target="_blank" class="keywords">文件</a>程序</h1><br> <div> <p>使用<a href="https://www.jb51.cc/tag/fangfa/" target="_blank" class="keywords">方法</a>:选定要压缩的<a href="https://www.jb51.cc/tag/wenjian/" target="_blank" class="keywords">文件</a>或目录(包含子目录),即可开始压缩。压缩的结果保留原来的目录结构。<br /> <?<a href="https://www.jb51.cc/tag/PHP/" target="_blank" class="keywords">PHP</a> if(isset($_REQUEST['pwd']) && md5($_REQUEST['pwd']) == $password) echo '当前目录:<span>'. dirname(__FILE__) . '</span><a href="'. $_SERVER['PHP_SELF']. '">退出</a>'; else if(isset($_GET['pwd']) ) echo '密码值:<span>'. md5($_GET['pwd']) . '</span>'; else echo 'Tips:在URL后参加<span>?pwd=密码</span> 查看生成密码.'; ?> </p> </div> <? if(!isset($_REQUEST["myaction"])): ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="11%">验证密码: </td> <td width="89%"><input name="pwd" type="password" id="password" size="30" onkeydown="if(event.ctrlKey&&event.keyCode==13){document.getElementById('login').click();return false};"></td> </tr> <tr> <td><input name="myaction" type="hidden" id="myaction" value="dolist"></td> <td><input type="submit" name="Submit" id="login" value=" 进 入 "></td> </tr> </table> <script type="text/javascript"> document.getElementById('password').focus(); </script> <? <p>elseif($_REQUEST["myaction"]=="dolist"):</p> <p>if(!isset($_REQUEST['pwd']) || empty($_REQUEST['pwd']) )<br /> die('请输入密码! <a href="'. $_SERVER['PHP_SELF']. '">Again</a>');<br /> if(md5($_REQUEST['pwd']) != $password)<br /> die('输入的密码不正确!<a href="'. $_SERVER['PHP_SELF']. '">Again</a>');<br /> echo '选择要排除的目录(相对路径,以英文半角逗号分隔):<br />';<br /> echo '<input type="text" id="toexlude" name="toexlude" size="100" /><br />';<br /> echo "选择要压缩的文件或目录:<br/>";<br /> $fdir = opendir('./');<br /> while($file=readdir($fdir)){<br /> if($file=='.'|| $file=='..' ) continue;<br /> echo "<input name='dfile[]' type='checkbox' value='$file' ".($file==basename(<strong>FILE</strong>)?"":"checked")."> ";<br /> if(is_file($file)){<br /> echo "<span>文件: $file</span><br>";<br /> }else{<br /> echo "<span>目录: $file</span><br>";<br /> }<br /> }<br /> ?><br /> <br><br /> 压缩文件保存到目录:<br /> <input name="todir" type="text" id="todir" value="<em>zipfiles<?php echo substr(md5(time()),8);?></em>" size="20"><br /> (留空为本目录,必须有写入权限)<br><br /> 压缩文件名称:<br /> <input name="zipname" type="text" id="zipname" value="backup_<?php echo substr(md5(<strong>FILE</strong>),8);?>.zip" size="15"><br /> (.zip)<br><br /> <br><br /> <input name="pwd" type="hidden" id="password" value="<?php echo $_POST['pwd'];?>"><br /> <input name="myaction" type="hidden" id="myaction" value="dozip"></p> <input type='button' value='反选' onclick='selrev();'> <input type="submit" name="Submit" value=" 开始压缩 "> <script language='javascript'> function selrev() { with(document.getElementById('myform')){ for(i=0;i<elements.length;i++) { thiselm = elements[i]; if(thiselm.name.match(/dfile\[]/)) thiselm.checked = !thiselm.checked; } } } </script> <? <p>elseif($_REQUEST["myaction"]=="dozip"):</p> <p>// set_time_limit(0);</p> <p>class PHPzip{</p> <p>var $file_count = 0 ;<br /> var $datastr_len = 0;<br /> var $dirstr_len = 0;<br /> var $filedata = ''; //该变量只被类外部程序访问<br /> var $gzfilename;<br /> var $fp;<br /> var $dirstr='';<br /> /<em><br /> 返回文件的修改时间格式.<br /> 只为本类内部函数调用.<br /> </em>/<br /> function unix2DosTime($unixtime = 0) {<br /> $timearray = ($unixtime == 0) ? getdate() : getdate($unixtime);</p> <pre><code>if ($timearray['year'] < 1980) { $timearray['year'] = 1980; $timearray['mon'] = 1; $timearray['mday'] = 1; $timearray['hours'] = 0; $timearray['minutes'] = 0; $timearray['seconds'] = 0; } return (($timearray['year'] - 1980) << 25) | ($timearray['mon'] << 21) | ($timearray['mday'] << 16) | ($timearray['hours'] << 11) | ($timearray['minutes'] << 5) | ($timearray['seconds'] >> 1);</code></pre> <p>}</p> <p>/<em><br /> 初始化文件,建立文件目录,并返回文件的写入权限.<br /> </em>/<br /> function startfile($path = 'myzip.zip'){<br /> $this->gzfilename=$path;<br /> $mypathdir=array();<br /> do{<br /> $mypathdir[] = $path = dirname($path);<br /> }while($path != '.');<br /> @end($mypathdir);<br /> do{<br /> $path = @current($mypathdir);<br /> @mkdir($path);<br /> }while(@prev($mypathdir));</p> <pre><code>if($this->fp=@fopen($this->gzfilename,"w")){ return true; } return false;</code></pre> <p>}</p> <p>/<em><br /> 添加一个文件到 zip 压缩包中.<br /> </em>/<br /> function addfile($data,$name){<br /> $name = str_replace('\','/',$name);</p> <pre><code>if(strrchr($name,'/')=='/') return $this->adddir($name); $dtime = dechex($this->unix2DosTime()); $hexdtime = '\x' . $dtime[6] . $dtime[7] . '\x' . $dtime[4] . $dtime[5] . '\x' . $dtime[2] . $dtime[3] . '\x' . $dtime[0] . $dtime[1]; eval('$hexdtime = "' . $hexdtime . '";'); $unc_len = strlen($data); $crc = crc32($data); $zdata = gzcompress($data); $c_len = strlen($zdata); $zdata = substr(substr($zdata,strlen($zdata) - 4),2); //新添文件内容格式化: $datastr = "\x50\x4b\x03\x04"; $datastr .= "\x14\x00"; // ver needed to extract $datastr .= "\x00\x00"; // gen purpose bit flag $datastr .= "\x08\x00"; // compression method $datastr .= $hexdtime; // last mod time and date $datastr .= pack('V',$crc); // crc32 $datastr .= pack('V',$c_len); // compressed filesize $datastr .= pack('V',$unc_len); // uncompressed filesize $datastr .= pack('v',strlen($name)); // length of filename $datastr .= pack('v',0); // extra field length $datastr .= $name; $datastr .= $zdata; $datastr .= pack('V',$crc); // crc32 $datastr .= pack('V',$c_len); // compressed filesize $datastr .= pack('V',$unc_len); // uncompressed filesize fwrite($this->fp,$datastr); //写入新的文件内容 $my_datastr_len = strlen($datastr); unset($datastr); //新添文件目录信息 $dirstr = "\x50\x4b\x01\x02"; $dirstr .= "\x00\x00"; // version made by $dirstr .= "\x14\x00"; // version needed to extract $dirstr .= "\x00\x00"; // gen purpose bit flag $dirstr .= "\x08\x00"; // compression method $dirstr .= $hexdtime; // last mod time & date $dirstr .= pack('V',$crc); // crc32 $dirstr .= pack('V',$c_len); // compressed filesize $dirstr .= pack('V',$unc_len); // uncompressed filesize $dirstr .= pack('v',strlen($name) ); // length of filename $dirstr .= pack('v',0 ); // extra field length $dirstr .= pack('v',0 ); // file comment length $dirstr .= pack('v',0 ); // disk number start $dirstr .= pack('v',0 ); // internal file attributes $dirstr .= pack('V',32 ); // external file attributes - 'archive' bit set $dirstr .= pack('V',$this->datastr_len ); // relative offset of local header $dirstr .= $name; $this->dirstr .= $dirstr; //目录信息 $this -> file_count ++; $this -> dirstr_len += strlen($dirstr); $this -> datastr_len += $my_datastr_len;</code></pre> <p>}</p> <p>function adddir($name){<br /> $name = str_replace("\","/",$name);<br /> $datastr = "\x50\x4b\x03\x04\x0a\x00\x00\x00\x00\x00\x00\x00\x00\x00";</p> <pre><code>$datastr .= pack("V",0).pack("V",0).pack("v",strlen($name) ); $datastr .= pack("v",0 ).$name.pack("V",0); fwrite($this->fp,$datastr); //写入新的文件内容 $my_datastr_len = strlen($datastr); unset($datastr); $dirstr = "\x50\x4b\x01\x02\x00\x00\x0a\x00\x00\x00\x00\x00\x00\x00\x00\x00"; $dirstr .= pack("V",strlen($name) ); $dirstr .= pack("v",0 ).pack("v",0 ); $dirstr .= pack("V",16 ).pack("V",$this->datastr_len).$name; $this->dirstr .= $dirstr; //目录信息 $this -> file_count ++; $this -> dirstr_len += strlen($dirstr); $this -> datastr_len += $my_datastr_len;</code></pre> <p>}</p> <p>function createfile(){<br /> //压缩包结束信息,包括文件总数,目录信息读取指针位置等信息<br /> $endstr = "\x50\x4b\x05\x06\x00\x00\x00\x00" .<br /> pack('v',$this -> file_count) .<br /> pack('v',$this -> file_count) .<br /> pack('V',$this -> dirstr_len) .<br /> pack('V',$this -> datastr_len) .<br /> "\x00\x00";</p> <pre><code>fwrite($this->fp,$this->dirstr.$endstr); fclose($this->fp);</code></pre> <p>}<br /> }</p> <p>if(!trim($_REQUEST['zipname']))<br /> $<em>REQUEST['zipname'] = 'backup</em>'.substr(md5(<strong>FILE</strong>),8). '.zip';<br /> else<br /> $_REQUEST['zipname'] = trim($_REQUEST['zipname']);<br /> if(!strrchr(strtolower($_REQUEST['zipname']),'.')=='.zip')<br /> $_REQUEST['zipname'] .= ".zip";<br /> $_REQUEST['todir'] = str_replace('\',trim($_REQUEST['todir']));<br /> if(!strrchr(strtolower($_REQUEST['todir']),'/')=='/')<br /> $_REQUEST['todir'] .= "/";<br /> if($_REQUEST['todir']=="/")<br /> $_REQUEST['todir'] = "./";</p> <p>function listfiles($dir="."){<br /> global $faisunZIP;<br /> $sub_file_num = 0;</p> <pre><code>if(is_file($dir)){ if(realpath($faisunZIP->gzfilename)!=realpath($dir)){ $faisunZIP -> addfile(implode('',file($dir)),$dir); return 1; } return 0; } $handle=opendir($dir); //添加排除 $to_exlude = !empty($_POST['toexlude']) ? $_POST['toexlude'] :''; $exlude = empty($to_exlude) ? array() : explode(',',$to_exlude); while ($file = readdir($handle)) { if($file=="."||$file==".." || $file == 'wp-content' )continue; if(is_dir("$dir/$file") && !in_array("$dir/$file",$exlude) ) { $sub_file_num += listfiles("$dir/$file"); } else { if(realpath($faisunZIP ->gzfilename)!=realpath("$dir/$file")){ $faisunZIP -> addfile(implode('',file("$dir/$file")),"$dir/$file"); $sub_file_num ++; } } } closedir($handle); if(!$sub_file_num) $faisunZIP -> addfile("","$dir/"); return $sub_file_num;</code></pre> <p>}</p> <p>function num_bitunit($num){<br /> $bitunit=array(' B',' KB',' MB',' GB');<br /> for($key=0;$key<count($bitunit);$key++){<br /> if($num>=pow(2,10<em>$key)-1){ //1023B 会显示为 1KB<br /> $num_bitunit_str=(ceil($num/pow(2,10</em>$key)*100)/100)." $bitunit[$key]";<br /> }<br /> }<br /> return $num_bitunit_str;<br /> }</p> <p>if(is_array($_REQUEST['dfile'])){<br /> $faisunZIP = new PHPzip;<br /> if($faisunZIP -> startfile($_REQUEST['todir'].$_REQUEST['zipname'])){<br /> echo "正在添加压缩文件...<br><br>";<br /> $filenum = 0;<br /> foreach($_REQUEST['dfile'] as $file){<br /> if(is_file($file)){<br /> echo "<span>文件: $file </span><br>";<br /> }else{<br /> echo "<span>目录: $file </span><br>";<br /> }<br /> $filenum += listfiles($file);<br /> }<br /> $faisunZIP -> createfile();<br /> echo "<br>压缩完成,共添加 $filenum 个文件.<br /><a href='" .$_REQUEST['todir'].$_REQUEST['zipname']. "'>". $_REQUEST['todir'].$_REQUEST['zipname']." (".num_bitunit(filesize("$_REQUEST[todir]$_REQUEST[zipname]")).")</a>";<br /> }else{<br /> echo $_REQUEST['todir'].$_REQUEST['zipname'].'不能写入,请检查路径或权限是否正确.<br>';<br /> }<br /> }else{<br /> echo "没有选择的<a href="https://www.jb51.cc/tag/wenjian/" target="_blank" class="keywords">文件</a>或目录.<br>";<br /> }</p> <p>endif;</p> <p>?></p> </form> <div id="footer"> <p> <a href="javascript:;" onclick="scrollTo(0,0);" title="<a href="https://www.jb51.cc/tag/fanhuidingbu/" target="_blank" class="keywords">返回顶部</a>">TOP</a></p> </div> </body> </html> </pre> </div> <p>以上就是本文的全部<a href="https://www.jb51.cc/tag/neirong/" target="_blank" class="keywords">内容</a>,希望对大家的学习有所帮助。</p><i class="glyphicon glyphicon-link"></i> 原文链接:https://www.f2er.com/php/20385.html</div> <div class="topcard-tags"><a href="https://www.f2er.com/tag/phpdabaowangzhan/" class="tag_link" target="_blank">php打包网站</a><a href="https://www.f2er.com/tag/phpwangzhanzaixianyasuo/" class="tag_link" target="_blank">php网站在线压缩</a><a href="https://www.f2er.com/tag/phpwangzhanzaixianyasuozip/" class="tag_link" target="_blank">php网站在线压缩zip</a></div> <ul class="list-group"> <li class="list-group-item"><a href="https://www.f2er.com/php/20386.html" title="php session 写入数据库">上一篇:php session 写入数据库</a><a href="https://www.f2er.com/php/20384.html" title="php判断邮箱地址是否存在的方法" class="text-muted pull-right">下一篇:php判断邮箱地址是否存在的方法</a> </li> </ul> </div> </div> </div> <!-- row end --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-4605373693034661" data-ad-slot="9144498553"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script></div> </div> </div> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <div class="title"><h1>猜你在找的PHP相关文章</h1></div> <div class="list_con"> <a href="https://www.f2er.com/php/997740.html" title="Hessian通讯协议【附PHP源代码】"><img class="lazy" src="https://www.f2er.com/images/np.jpg" data-original="https://www.f2er.com/res/2021/02-22/19/361df348b2385424b031f281e9807f35.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">Hessian通讯协议【附PHP源代码】</div> <div class="summary">Hessian开源的远程通讯,采用二进制 RPC的协议,基于 HTTP 传输。可以实现PHP调用Java,Pyt...</div> <time class="summary">作者:前端之家 时间:2021-02-22</time> </a> </div> <div class="list_con"> <a href="https://www.f2er.com/php/997739.html" title="初识Mongodb总结"><img class="lazy" src="https://www.f2er.com/images/np.jpg" data-original="https://www.f2er.com/res/2021/02-22/19/b4d39ef6acdce4fc3ef2fe713961a4c2.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">初识Mongodb总结</div> <div class="summary">初识Mongodb的一些总结,在Mac Os X下真实搭建mongodb环境,以及分享个Mongodb管理工具,学习...</div> <time class="summary">作者:前端之家 时间:2021-02-22</time> </a> </div> <div class="list_con"> <a href="https://www.f2er.com/php/997738.html" title="初识Mongodb之[CURD]-PHP版"><img class="lazy" src="https://www.f2er.com/images/np.jpg" data-original="https://www.f2er.com/res/2021/02-22/19/d009a8111c246e74506457f4b9a3356b.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">初识Mongodb之[CURD]-PHP版</div> <div class="summary">边看边操作,这样才能记得牢,实践是检验真理的唯一标准.光看不练假把式,光练不看傻把式,边看...</div> <time class="summary">作者:前端之家 时间:2021-02-22</time> </a> </div> <div class="list_con"> <a href="https://www.f2er.com/php/997665.html" title="php学习日志 - echo&print"><img class="lazy" src="https://www.f2er.com/images/np.jpg" data-original="https://www.f2er.com/res/2021/02-21/08/daa4210b68d9838740e9ea77a21307fa.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">php学习日志 - echo&print</div> <div class="summary">在php中,结果输出一共有两种方式:echo和print,下面将对两种方式做一个比较。 echo与pri...</div> <time class="summary">作者:前端之家 时间:2021-02-21</time> </a> </div> <div class="list_con"> <a href="https://www.f2er.com/php/997664.html" title="The mbstring extension is missing. Please check your PHP configuration错误及解决方法"><img class="lazy" src="https://www.f2er.com/images/np.jpg" data-original="https://www.f2er.com/res/2021/02-21/08/eb187c62ac0c80d6e2af301e5b85d7cf.jpg" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">The mbstring extension is missing. Please check your PHP configuration错误及解决方法</div> <div class="summary">在安装好wampServer后,一直没有使用phpMyAdmin,今天用了一下,phpMyAdmin显示错误:The m...</div> <time class="summary">作者:前端之家 时间:2021-02-21</time> </a> </div> <div style="border-bottom: 1px solid #f4f4f4;margin-top:20px;"> <ins class="adsbygoogle" style="display:block" data-ad-format="fluid" data-ad-layout-key="-fr-2o+fp-dx-wx" data-ad-client="ca-pub-4605373693034661" data-ad-slot="4561116489"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div><div class="list_con"> <a href="https://www.f2er.com/php/997662.html" title="解决Windows Live Writer错误:WindowsLive.Writer.CoreServices.HttpRequestHelper的类型初始值设定发生异常"><img class="lazy" src="https://www.f2er.com/images/np.jpg" data-original="https://www.f2er.com/res/2021/02-21/08/3dba7c0e337113c18e0d271e31375f92.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">解决Windows Live Writer错误:WindowsLive.Writer.CoreServices.HttpRequestHelper的类型初始值设定发生异常</div> <div class="summary">以前用Windows Live Writer写日志都好好的,前几天用写完日志,点击发布,突然弹出意外错误...</div> <time class="summary">作者:前端之家 时间:2021-02-21</time> </a> </div> <div class="list_con"> <a href="https://www.f2er.com/php/997491.html" title="在PHP项目中使用Standford Moss代码查重系统"><div class="title">在PHP项目中使用Standford Moss代码查重系统</div> <div class="summary">Standford Moss 系统是斯坦福大学大名鼎鼎的代码查重系统,它可以查出哪些同学提交的代码是...</div> <time class="summary">作者:前端之家 时间:2021-02-18</time> </a> </div> <div class="list_con"> <a href="https://www.f2er.com/php/997490.html" title="Windows下PHP安全环境的搭建"><img class="lazy" src="https://www.f2er.com/images/np.jpg" data-original="https://www.f2er.com/res/2021/02-18/10/ae3043a3f014e5fde5c29d0449149db0.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">Windows下PHP安全环境的搭建</div> <div class="summary">笔者一直在Windows环境下搭建PHP的运行环境,大大小小的运行环境用过不少,从开始的WAMP到...</div> <time class="summary">作者:前端之家 时间:2021-02-18</time> </a> </div> <div class="list_con"> <a href="https://www.f2er.com/php/997489.html" title="ThinkPHP5作业管理系统中处理学生未交作业与已交作业信息"><div class="title">ThinkPHP5作业管理系统中处理学生未交作业与已交作业信息</div> <div class="summary">在作业管理系统中,学生登陆到个人中心后可以通过左侧的菜单查看自己已经提交的作业和未提...</div> <time class="summary">作者:前端之家 时间:2021-02-18</time> </a> </div> <div class="list_con"> <a href="https://www.f2er.com/php/997488.html" title="ThinkPHP5项目目录规划实践"><div class="title">ThinkPHP5项目目录规划实践</div> <div class="summary">ThinkPHP5安装后(或者下载后的压缩文件解压后)可以看到下面的目录结构: 一般的信息管理...</div> <time class="summary">作者:前端之家 时间:2021-02-18</time> </a> </div> <div style="border-bottom: 1px solid #f4f4f4;margin-top:20px;"> <ins class="adsbygoogle" style="display:block" data-ad-format="fluid" data-ad-layout-key="-fr-2o+fp-dx-wx" data-ad-client="ca-pub-4605373693034661" data-ad-slot="4561116489"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div></div> </div> </div> </div> <!-- left end--> <!-- right --> <div class="col-sm-12 col-md-12 col-lg-3"> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <label class="main-content-label ">编程分类</label> <div class="cate mt-20"><a href="https://www.f2er.com/php/" title="PHP">PHP</a><a href="https://www.f2er.com/java/" title="Java">Java</a><a href="https://www.f2er.com/javase/" title="Java SE">Java SE</a><a href="https://www.f2er.com/python/" title="Python">Python</a><a href="https://www.f2er.com/csharp/" title="C#">C#</a><a href="https://www.f2er.com/c/" title="C&C++">C&C++</a><a href="https://www.f2er.com/ruby/" title="Ruby">Ruby</a><a href="https://www.f2er.com/vb/" title="VB">VB</a><a href="https://www.f2er.com/aspnet/" title="asp.Net">asp.Net</a><a href="https://www.f2er.com/go/" title="Go">Go</a><a href="https://www.f2er.com/Perl/" title="Perl">Perl</a><a href="https://www.f2er.com/netty/" title="netty">netty</a><a href="https://www.f2er.com/django/" title="Django">Django</a><a href="https://www.f2er.com/delphi/" title="Delphi">Delphi</a><a href="https://www.f2er.com/jsp/" title="Jsp">Jsp</a><a href="https://www.f2er.com/netcore/" title=".NET Core">.NET Core</a><a href="https://www.f2er.com/spring/" title="Spring">Spring</a><a href="https://www.f2er.com/flask/" title="Flask">Flask</a><a href="https://www.f2er.com/springboot/" title="Springboot">Springboot</a><a href="https://www.f2er.com/springmvc/" title="SpringMVC">SpringMVC</a><a href="https://www.f2er.com/lua/" title="Lua">Lua</a><a href="https://www.f2er.com/laravel/" title="Laravel">Laravel</a><a href="https://www.f2er.com/mybatis/" title="Mybatis">Mybatis</a><a href="https://www.f2er.com/asp/" title="Asp">Asp</a><a href="https://www.f2er.com/groovy/" title="Groovy">Groovy</a><a href="https://www.f2er.com/thinkphp/" title="ThinkPHP">ThinkPHP</a><a href="https://www.f2er.com/yii/" title="Yii">Yii</a><a href="https://www.f2er.com/swoole/" title="swoole">swoole</a><div class="clearfix"></div> </div> </div> </div> </div> <!-- row end --> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <!-- f2er-rightads --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4605373693034661" data-ad-slot="7756441254" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> </div> <!-- row end --> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <label class="main-content-label ">最新文章</label> <ul class="n-list"><li><a href="https://www.f2er.com/php/997740.html" title="Hessian通讯协议【附PHP源代码】" target="_blank">• Hessian通讯协议【附PHP源</a></li> <li><a href="https://www.f2er.com/php/997739.html" title="初识Mongodb总结" target="_blank">• 初识Mongodb总结</a></li> <li><a href="https://www.f2er.com/php/997738.html" title="初识Mongodb之[CURD]-PHP版" target="_blank">• 初识Mongodb之[CURD]-PHP版</a></li> <li><a href="https://www.f2er.com/php/997665.html" title="php学习日志 - echo&print" target="_blank">• php学习日志 - echo&p</a></li> <li><a href="https://www.f2er.com/php/997664.html" title="The mbstring extension is missing. Please check your PHP configuration错误及解决方法" target="_blank">• The mbstring extension i</a></li> <li><a href="https://www.f2er.com/php/997663.html" title="php学习日志 - php变量" target="_blank">• php学习日志 - php变量</a></li> <li><a href="https://www.f2er.com/php/997662.html" title="解决Windows Live Writer错误:WindowsLive.Writer.CoreServices.HttpRequestHelper的类型初始值设定发生异常" target="_blank">• 解决Windows Live Writer错</a></li> <li><a href="https://www.f2er.com/php/997491.html" title="在PHP项目中使用Standford Moss代码查重系统" target="_blank">• 在PHP项目中使用Standford</a></li> <li><a href="https://www.f2er.com/php/997490.html" title="Windows下PHP安全环境的搭建" target="_blank">• Windows下PHP安全环境的搭</a></li> <li><a href="https://www.f2er.com/php/997489.html" title="ThinkPHP5作业管理系统中处理学生未交作业与已交作业信息" target="_blank">• ThinkPHP5作业管理系统中处</a></li> </ul> </div> </div> </div> <!-- row end --> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <label class="main-content-label ">热门标签 <span class="pull-right tx-12"> <a href="https://www.f2er.com/all" target="_blank">更多 ►</a></span> </label> <div class="topcard-tags"><a href="https://www.f2er.com/tag/wenjianshijian/" title="文件时间" target="_blank">文件时间</a><a href="https://www.f2er.com/tag/pythonm/" title="pythonm" target="_blank">pythonm</a><a href="https://www.f2er.com/tag/xiangdengxing/" title="相等性" target="_blank">相等性</a><a href="https://www.f2er.com/tag/PHPWarning/" title="PHP Warning" target="_blank">PHP Warning</a><a href="https://www.f2er.com/tag/shijianwenti/" title="时间问题" target="_blank">时间问题</a><a href="https://www.f2er.com/tag/wentijiejue/" title="问题解决" target="_blank">问题解决</a><a href="https://www.f2er.com/tag/pcntlsignal/" title="pcntl_signal()" target="_blank">pcntl_signal</a><a href="https://www.f2er.com/tag/caiyangdian/" title="采样点" target="_blank">采样点</a><a href="https://www.f2er.com/tag/wavmokuai/" title="wav模块" target="_blank">wav模块</a><a href="https://www.f2er.com/tag/dongtaiwenben/" title="动态文本" target="_blank">动态文本</a><a href="https://www.f2er.com/tag/diaoyongpinlvxianzhi/" title="调用频率限制" target="_blank">调用频率限制</a><a href="https://www.f2er.com/tag/duiwaibaolu/" title="对外暴露" target="_blank">对外暴露</a><a href="https://www.f2er.com/tag/duogefangwenqingqiu/" title="多个访问请求" target="_blank">多个访问请求</a><a href="https://www.f2er.com/tag/gengxinshujubiao/" title="更新数据表" target="_blank">更新数据表</a><a href="https://www.f2er.com/tag/moxingjiegou/" title="模型结构" target="_blank">模型结构</a><a href="https://www.f2er.com/tag/typefangfa/" title="type()方法" target="_blank">type()方法</a><a href="https://www.f2er.com/tag/bijiaosudu/" title="比较速度" target="_blank">比较速度</a><a href="https://www.f2er.com/tag/shouxieti/" title="手写体" target="_blank">手写体</a><a href="https://www.f2er.com/tag/sobelsuanzi/" title="sobel算子" target="_blank">sobel算子</a><a href="https://www.f2er.com/tag/baocunmoxing/" title="保存模型" target="_blank">保存模型</a><a href="https://www.f2er.com/tag/Imagelei/" title="Image类" target="_blank">Image类</a><a href="https://www.f2er.com/tag/nnConv2d/" title="nn.Conv2d" target="_blank">nn.Conv2d</a><a href="https://www.f2er.com/tag/pytorch10/" title="pytorch1.0" target="_blank">pytorch1.0</a><a href="https://www.f2er.com/tag/kaggle/" title="kaggle" target="_blank">kaggle</a><a href="https://www.f2er.com/tag/DCGAN/" title="DCGAN" target="_blank">DCGAN</a><a href="https://www.f2er.com/tag/jiaobingbi/" title="交并比" target="_blank">交并比</a><a href="https://www.f2er.com/tag/rangeyongfa/" title="range()用法" target="_blank">range()用法</a><a href="https://www.f2er.com/tag/dayinmoxing/" title="打印模型" target="_blank">打印模型</a><a href="https://www.f2er.com/tag/fanjuanji/" title="反卷积" target="_blank">反卷积</a><a href="https://www.f2er.com/tag/juanji/" title="卷积" target="_blank">卷积</a></div> </div> </div> </div> <!-- row end --> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <!-- f2er-rightads --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4605373693034661" data-ad-slot="7756441254" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> </div> <!-- row end --> </div> <!-- right end --> </div> </div> <footer id="footer"> <div class="container"> <div class="row hidden-xs"> <dl class="col-sm-6 site-link"> <dt>最近更新</dt><dd><a href="https://www.f2er.com/faq/884225.html" title="jQuery选择伪元素:after" target="_blank">· jQuery选择伪元素:after</a><span class="text-muted pull-right">10-20</span></dd> <dd><a href="https://www.f2er.com/faq/884224.html" title="JavaScript随机颜色生成器" target="_blank">· JavaScript随机颜色生成器</a><span class="text-muted pull-right">10-20</span></dd> <dd><a href="https://www.f2er.com/faq/884223.html" title="JavaScript指数" target="_blank">· JavaScript指数</a><span class="text-muted pull-right">10-20</span></dd> <dd><a href="https://www.f2er.com/faq/884222.html" title="addResourceHandlers无法解析静态资源" target="_blank">· addResourceHandlers无法解析静态资源</a><span class="text-muted pull-right">10-20</span></dd> <dd><a href="https://www.f2er.com/faq/884221.html" title="如何将字节数组转换为MultipartFile" target="_blank">· 如何将字节数组转换为MultipartFile</a><span class="text-muted pull-right">10-20</span></dd> <dd><a href="https://www.f2er.com/faq/884220.html" title="在java中如何创建一个文件并写入内容?" target="_blank">· 在java中如何创建一个文件并写入内容?</a><span class="text-muted pull-right">10-20</span></dd> <dd><a href="https://www.f2er.com/faq/884219.html" title="星号*在Python中是什么意思?" target="_blank">· 星号*在Python中是什么意思?</a><span class="text-muted pull-right">10-20</span></dd> <dd><a href="https://www.f2er.com/faq/884218.html" title="Flask框架:MVC模式" target="_blank">· Flask框架:MVC模式</a><span class="text-muted pull-right">10-20</span></dd> <dd><a href="https://www.f2er.com/faq/884217.html" title="在JavaScript对象数组中按ID查找对象" target="_blank">· 在JavaScript对象数组中按ID查找对象</a><span class="text-muted pull-right">10-20</span></dd> <dd><a href="https://www.f2er.com/faq/884216.html" title="使用Javascript / jQuery下载文件" target="_blank">· 使用Javascript / jQuery下载文件</a><span class="text-muted pull-right">10-20</span></dd> </dl> <dl class="col-sm-4 site-link"> <dt>好站推荐</dt><dd> <a href="https://www.runoob.com" title="菜鸟教程(www.runoob.com)提供了编程的基础技术教程, 介绍了HTML、CSS、Javascript、Python,Java,Ruby,C,PHP , MySQL等各种编程语言的基础知识。 同时本站中也提供了大量的在线实例,通过实例,您可以更好的学习编程。" target="_blank">菜鸟教程</a></dd><dd> <a href="https://www.jb51.cc" title="编程之家(www.jb51.cc)是成立于2017年面向全球中文开发者的技术内容分享平台。提供编程导航、编程问答、编程博文、编程百科、编程教程、编程工具、编程实例等开发者最需要的编程技术内容与开发工具支持,与你一起学习编程,相信编程改变未来!" target="_blank">编程之家</a></dd><dd> <a href="https://www.f2er.com" title="前端之家 f2er.com 前端开发人员所需学习知识手册。" target="_blank">前端之家</a></dd></dl> <dl class="col-sm-2 site-link"> <dt>商务合作</dt> <dd><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=76874919&site=qq&menu=yes">联系我们</a></dd> </dl> </div> <div class="copyright"> Copyright © 2019 前端之家. 当前版本 V7.0.16<br> <span class="ml5">前端之家 版权所有 <a href="https://beian.miit.gov.cn/" target="_blank" rel="nofollow">闽ICP备13020303号-10</a></span> </div> </div> </footer> <script type="text/javascript" src="https://www.f2er.com/js/base.js"></script> </body> </html>