$istop_message['narong'] = htmlspecialchars_decode($istop_message['narong']); $istop_message['narong'] = strip_tags($istop_message['narong'],'');
第一步先把富媒体中的字符变成html的,然后在通过strip_tags去掉html标识
$istop_message['narong'] = htmlspecialchars_decode($istop_message['narong']); $istop_message['narong'] = strip_tags($istop_message['narong'],'');
第一步先把富媒体中的字符变成html的,然后在通过strip_tags去掉html标识
多维关联数组的volist,试了半天,狗
数组格式如下:
array(4) {
["技术合同登记平台"] => array(3) {
[0] => array(10) {
["id"] => int(58)
["admin_id"] => int(1)
["platform"] => string(2) "16"
["tongji_name"] => string(18) "项目申报数据"
["tongji"] => string(3) "888"
["listorder"] => int(0)
["status"] => int(1)
["create_time"] => int(1647931596)
["update_time"] => int(1647931596)
["delete_time"] => int(0)
}
prevent
动词 V v. 阻止,阻碍;防止,预防;设置障碍
短语
Prevent 防止阻止预防
prevent from 预防阻止防止防备
Hard to prevent 防不胜防
list_rows,每页数量
type:分页类名
* @param int|null $listRows 每页数量
* @param bool $simple 简洁模式
* @param array $config 配置参数
* page:当前页,
* path:url路径,
* query:url额外参数,
* fragment:url锚点,
* var_page:分页变量,
* list_rows:每页数量
* type:分页类名,
* namespace:分页类命名空间
先批量yum:
yum install libxml2 libxml2-devel openssl-devel curl curl-devel turbojpeg-devel libjpeg-turbo-devel libpng-devel libXpm-devel freetype-devel libXpm-devel libicu-devel xslt libxslt-devel -y
centos8不更新了,centos7的yum还能用,后面用ubuntu吧.
./configure –prefix=/home/system/php \
–with-mysqli \
–enable-fpm \
–with-pdo-mysql=mysqlnd \
–with-iconv-dir \
–with-freetype-dir \
–with-jpeg-dir \
–with-png-dir \
–with-zlib \
–with-libxml-dir \
–enable-xml \
–enable-bcmath \
–enable-shmop \
–enable-sysvsem \
–enable-inline-optimization \
–with-curl \
–enable-mbregex \
–enable-mbstring \
–enable-intl \
–enable-ftp \
–with-gd \
–with-openssl \
–with-mhash \
–enable-pcntl \
–enable-sockets \
–with-xmlrpc \
–enable-zip \
–enable-soap \
–with-gettext \
–enable-opcache \
–with-xsl
#!/bin/bash
filesCount=0
linesCount=0
function funCount()
{
for file in ` ls $1 `
do
if [ -d $1″/”$file ];then
funCount $1″/”$file
else
declare -i fileLines
fileLines=`sed -n ‘$=’ $1″/”$file`
let linesCount=$linesCount+$fileLines
let filesCount=$filesCount+1
fi
done
}
if [ $# -gt 0 ];then
for m_dir in $@
do
funCount $m_dir
done
else
funCount “.”
fi
echo “filesCount = $filesCount”
echo “linesCount = $linesCount”
这几天做ueditor,最深的体会就是错误要仔细品,不品就可能浪费大量的时间于无意义的事情上.
我碰到config.json文件,双引号改成单引号,提示我配置文件不正确,可我一直执着于什么地方没配置,浪费了一天时间,最终还是回头看错误提示
ls -lu filename
查看文件最后访问日期
使用CONCAT()函数
mysql向表中某字段后追加一段字符串(field为字段名):
update table_name set field=CONCAT(field,’str’,)
mysql 向表中某字段前加字符串
update table_name set field=CONCAT(‘str’,field)
本人示例:
update rockphp_live_kj set content=concat('<video controls="controls" width="320" height="240"> <span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span><source src="http://xxx.xxx.com',content,'" type="video/mp4" /><span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_end"></span> <source src="movie.ogg" type="video/ogg" /> 您的浏览器不支持 video 标签。</video>');
<!DOCTYPE html>
<html>
<head>
<meta charset=”utf-8″>
<title>菜鸟教程(runoob.com)</title>
</head>
<body>
<p>点击按钮列出数组的每个元素。</p>
<button onclick=”numbers.forEach(myFunction)”>点我</button>
<p id=”demo”></p>
<script>
demoP = document.getElementById(“demo”);
var numbers = [4, 9, 16, 25];
function myFunction(item, index) {
demoP.innerHTML = demoP.innerHTML + “index[” + index + “]: ” + item + “<br>”;
}
</script>