<pre class="brush:php;toolbar:false">update `table` set content=replace(content,'要替换的字符','替换后的字符');</pre><p><br/></p>
Where possible begins
希望你喜欢这里。有问题,请提问,或搜索现有帖子。
真诚、友善、团结、专业,共建你我引以为荣之社区。《常见问题解答》
二维数组按指定的键值排序
开发调优
<pre class="brush:php;toolbar:false">/* function:二维数组按指定的键值排序 */ function array_sort($array,$keys,$type='asc'){ if(!isset($array) || !is_array($array) || empty($array)){ return ''; } if(!isset($keys) || trim($keys)==''){ return ''; } if(!isset($type) || $type=='' || !in_array(strtolower($type),array('asc','desc'))){ return ''; } $keysvalue=array(); f
294
ueditor dl自动转成了ul
开发调优
<h4 style="box-sizing: border-box; outline: 0px; margin: 8px 0px 16px; padding: 0px; font-family: "PingFang SC", "Microsoft YaHei", 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">// 将下面3个参数值改为false // xss 过滤是否开启,inserthtml等操作 ,x
235
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中所有<Directory></Directory>之间的</p><p>AllowOverride None将None改为All</p><p><br/></p><p>3.在网站的目录下建立.htaccess文件</p><p>.htaccess文件内容如下</p><pre class="brush:php;toolbar:false"><IfModule mod_rewrite.c&g
200
apache2 修改默认php版本
开发调优
<div style="font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", 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: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; white-space: normal; background-color: rgb(255, 255, 255);"><div><div class="post" styl
267
小程序中封装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>
239
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, "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", 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, "SF UI Text", Arial, "
214
phpinfo() 查询是否支持伪静态
开发调优
<p>PHP 通过phpinfo查询是否支持伪静态</p><pre class="brush:php;toolbar:false"><?php echo phpinfo();</pre><p><br/></p><p>然后访问找到 <span style="color: rgb(51, 51, 51); font-family: "Microsoft Yahei", 微软雅黑, 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
333
linux 修改文件夹用户归属
开发调优
<p>设置runtime文件夹用户归属</p><p><br/></p><pre class="brush:bash;toolbar:false">chown -R www-data:www-data ./runtime</pre><p><br/></p><p>chown 用户名称:group组</p>
271
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>修改
240
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><
282
ueditor编辑器只上传视频video时,获取内容为空
开发调优
<p><br/></p><p><span style="color: rgb(77, 77, 77); font-family: -apple-system, "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", 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, "SF UI Text", Arial, "PingFang SC", "Hiragino S
292
设置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: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", 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:
334
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"/> <br/></p><p><br/></p>
286
a链接提交form表单
开发调优
<p>a链接提交form表单</p><pre class="brush:html;toolbar:false"><form method="get" id="search_form"> </form></pre><p><br/></p><p></p><pre class="brush:html;toolbar:false">1. <a onclick="document:search_form.submit();">提交</a> 2. <a href="javascript:document:search_form.submit();">提交</a> 3. <a onclick="document.getElementById('search_form').submit();">提交</a></pre
289