Where possible begins

希望你喜欢这里。有问题,请提问,或搜索现有帖子。

真诚、友善、团结、专业,共建你我引以为荣之社区。《常见问题解答》

子枫
子枫 [Rainy] 04-18 14:09

二维数组按指定的键值排序

开发调优

<pre class="brush:php;toolbar:false">/* function:二维数组按指定的键值排序 */ function&nbsp;array_sort($array,$keys,$type=&#39;asc&#39;){ if(!isset($array)&nbsp;||&nbsp;!is_array($array)&nbsp;||&nbsp;empty($array)){ return&nbsp;&#39;&#39;; } if(!isset($keys)&nbsp;||&nbsp;trim($keys)==&#39;&#39;){ return&nbsp;&#39;&#39;; } if(!isset($type)&nbsp;||&nbsp;$type==&#39;&#39;&nbsp;||&nbsp;!in_array(strtolower($type),array(&#39;asc&#39;,&#39;desc&#39;))){ return&nbsp;&#39;&#39;; } $keysvalue=array(); f

268

子枫
子枫 [Rainy] 04-12 11:06

ueditor dl自动转成了ul

开发调优

<h4 style="box-sizing: border-box; outline: 0px; margin: 8px 0px 16px; padding: 0px; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; white-space: normal; background-color: rgb(255, 255, 255);">1.找到ueditor.config.js文件</h4><pre class="brush:php;toolbar:false">//&nbsp;将下面3个参数值改为false //&nbsp;xss&nbsp;过滤是否开启,inserthtml等操作 ,x

219

子枫
子枫 [Rainy] 04-11 14:17

apache 开启伪静态

开发调优

<p>apache2的默认站点主目录:/var/www/html/</p><p>以下皆使用root权限运行</p><p><br/></p><p>1.加载rewrite模块</p><p>ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load</p><p><br/></p><p>2.apache2主配置文件修改</p><p>默认主配置文件位置为/etc/apache2/apache2.conf</p><p>将/etc/apache2/apache2.conf中所有&lt;Directory&gt;&lt;/Directory&gt;之间的</p><p>AllowOverride None将None改为All</p><p><br/></p><p>3.在网站的目录下建立.htaccess文件</p><p>.htaccess文件内容如下</p><pre class="brush:php;toolbar:false">&lt;IfModule&nbsp;mod_rewrite.c&g

185

子枫
子枫 [Rainy] 04-11 14:07

apache2 修改默认php版本

开发调优

<div style="font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 13px; white-space: normal; background-color: rgb(255, 255, 255);"><div><div>将php7.0 升级未php7.3</div></div></div><div style="font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 13px; white-space: normal; background-color: rgb(255, 255, 255);"><div><div class="post" styl

247

子枫
子枫 [Rainy] 04-08 11:47

小程序中封装base64

开发调优

<p>未测试</p><p><br/></p><p><a href="https://www.cnblogs.com/linsx/p/9255870.html" _src="https://www.cnblogs.com/linsx/p/9255870.html">https://www.cnblogs.com/linsx/p/9255870.html</a> </p><p><br/></p>

220

子枫
子枫 [Rainy] 04-08 10:44

ueditor li下span被过滤

开发调优

<p><br/></p><p><span style="box-sizing: border-box; outline: 0px; font-weight: 700; overflow-wrap: break-word; color: rgb(77, 77, 77); font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif, SimHei, SimSun; background-color: rgb(255, 255, 255);">ueiter.all.js</span><span style="color: rgb(77, 77, 77); font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;

197

子枫
子枫 [Rainy] 04-07 11:58

phpinfo() 查询是否支持伪静态

开发调优

<p>PHP 通过phpinfo查询是否支持伪静态</p><pre class="brush:php;toolbar:false">&lt;?php echo&nbsp;phpinfo();</pre><p><br/></p><p>然后访问找到&nbsp;<span style="color: rgb(51, 51, 51); font-family: &quot;Microsoft Yahei&quot;, 微软雅黑, arial, 宋体, sans-serif; text-align: justify; background-color: rgb(255, 255, 255);">Loaded Modules 模块</span></p><p><img src="https://exp-picture.cdn.bcebos.com/a1780d1fceecd3d94c08957167995943050108d6.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fquality%2Cq_80" alt="PHP

314

子枫
子枫 [Rainy] 04-07 11:45

linux 修改文件夹用户归属

开发调优

<p>设置runtime文件夹用户归属</p><p><br/></p><pre class="brush:bash;toolbar:false">chown&nbsp;-R&nbsp;www-data:www-data&nbsp;./runtime</pre><p><br/></p><p>chown 用户名称:group组</p>

248

子枫
子枫 [Rainy] 04-06 19:30

mysql 创建数据库/用户名

开发调优

<p><a href="http://bbs.90ckm.com/go.php?url=https://www.cnblogs.com/niewd/p/11481030.html" _src="https://www.cnblogs.com/niewd/p/11481030.html">https://www.cnblogs.com/niewd/p/11481030.html</a> </p><p><br/></p><p><br/></p><p><a href="http://bbs.90ckm.com/go.php?url=https://www.cnblogs.com/shindo/p/5146168.html" _src="https://www.cnblogs.com/shindo/p/5146168.html">https://www.cnblogs.com/shindo/p/5146168.html</a> </p><p><br/></p><p>查询mysql用户名</p><p>select user,host from user;</p><p><br/></p><p>修改

213

子枫
子枫 [Rainy] 04-03 15:11

cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

开发调优

<p></p><p>无法获取本地颁发者证书</p><p><br/></p><p>网上搜的解决方法:(http://stackoverflow.com/questions/29822686/curl-error-60-ssl-certificate-unable-to-get-local-issuer-certificate)</p><p><br/></p><p>关于“SSL证书问题:无法获取本地颁发者证书”错误。显然,这适用于发送CURL请求的系统(并且没有接收请求的服务器)</p><p><br/></p><p>1)从 https://curl.haxx.se/ca/cacert.pem 下载最新的cacert.pem</p><p><br/></p><p>2)将以下行添加到php.ini(如果这是共享托管和您没有访问php.ini然后你可以添加到.user.ini在public_html)</p><p><br/></p><p>curl.cainfo=/path/to/downloaded/cacert.pem</p><p><br/><br/></p><div><p><br/></p><

255

子枫
子枫 [Rainy] 03-30 11:27

ueditor编辑器只上传视频video时,获取内容为空

开发调优

<p><br/></p><p><span style="color: rgb(77, 77, 77); font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif, SimHei, SimSun; background-color: rgb(255, 255, 255);">打开ueditor.all.js文件,找到$isNotEmpty,加上video:1</span></p><p><br/></p><p><span style="color: rgb(77, 77, 77); font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino S

265

子枫
子枫 [Rainy] 03-29 12:44

设置iframe高度自适应屏幕高度

开发调优

<h1 class="postTitle" style="margin: 0px 0px 20px; padding: 0px; font-size: 28px; font-weight: 400; line-height: 1.8; color: rgb(51, 51, 51); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);"><a class="postTitle2 vertical-middle" href="https://www.cnblogs.com/eleven258/p/9276296.html" style="margin: 0px; padding: 0px; color: rgb(51, 51, 51); text-decoration-line:

309

子枫
子枫 [Rainy] 03-28 13:57

iis thinkphp51伪静态

子枫cmsX2

<p>这是适用于IIS7,IIS7.5,IIS8.0及以上的ThinkPHP的伪静态规则,把以下代码保存成web.config文件,放到FTP的web目录内即可</p><pre class="brush:php;toolbar:false">&lt;?xml&nbsp;version=&quot;1.0&quot;&nbsp;encoding=&quot;UTF-8&quot;?&gt; &lt;configuration&gt; &nbsp;&nbsp;&nbsp;&nbsp;&lt;system.webServer&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;rewrite&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;rules&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

299

子枫
子枫 [Rainy] 03-28 10:12

官方直播间

讨论专区

<p><br/></p><p><br/></p><p><iframe style="width: 700px;height: 400px;" src="https://www.bilibili.com/blackboard/live/live-activity-player.html?cid=22559989&quality=0" frameborder="no" framespacing="0" scrolling="no" allow="autoplay; encrypted-media" allowfullscreen="true"></iframe></p>

289

子枫
子枫 [Rainy] 03-27 14:32

github 每日chrat图

开发调优

<p><br/></p><p><br/></p><p><a href="https://ghchart.rshah.org/wmc1125" _src="https://ghchart.rshah.org/wmc1125">https://ghchart.rshah.org/wmc1125</a></p><p><br/></p><p><img src="https://ghchart.rshah.org/wmc1125"/> &nbsp; &nbsp;<br/></p><p><br/></p>

264