编辑/lib/systemd/system/rc-local.service
添加:
[Install]
WantedBy=multi-user.target
Alias=rc-local.service
systemctl enable rc-local
如果出错,会有提示,Install的I是大写,注意大小写
建立/etc/rc.local文件,记得加#!/bin/bash开头,并chmod +x /etc/rc.local
reboot—–> 生效
编辑/lib/systemd/system/rc-local.service
添加:
[Install]
WantedBy=multi-user.target
Alias=rc-local.service
systemctl enable rc-local
如果出错,会有提示,Install的I是大写,注意大小写
建立/etc/rc.local文件,记得加#!/bin/bash开头,并chmod +x /etc/rc.local
reboot—–> 生效
select ‘The Job id for ‘ || upper(FIRST_NAME) || ‘ ‘ || upper(LAST_NAME) || ‘ is ‘ || lower(job_id) as “EMPLOYEE DEFAILS” FROM EMPLOYEES;
PSR—-PHP Standard Recommendations PHP标准推荐
编译参数:
./configure –prefix=/home/system/php74 –enable-fpm –enable-mbstring –with-pdo-mysql –with-curl –enable-gd –with-freetype –with-pear –with-zlib
出现:Call to undefined function imagettftext()错误
我这边的情况是,第一次编译没加with-freetype,后续添加上还是不行,只能make clear,然后再configure,就好了,就当是编译时有缓存吧,不再花时间研究。
后台安装应用,无响应,不能安装,编译php时需要加上–with-zlib
ls | tr “\n” “\0” | xargs -0 du -csh 2>/dev/null
查询文件夹大小
array_chunk($phonelists,100)
腾讯发送短信,一次发送100条,使用array_chunk拆分,ok
.layui-nav .layui-this:after, .layui-nav-bar{
background-color: #ffda00fa;
}
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
翻译一下手册:
If you want to receive application/json post data in your script you can not use $_POST. $_POST does only handle form data.
如果你希望接收application/json的post数据,你不能用$_POST,$_POST仅仅用来处理表单数据
Read from php://input instead. You can use fopen or file_get_contents.
用php://input替代读取数据,使用fopen或者file_get_contents方法
Example:
举例:
1、从关键词意思上看:
echo 是输出字符串到浏览器
return主要是用于函数,返回一个值
2、echo 主要用于:php对浏览器的输出;
return主要用于处理函数的返回值
3、在大多数情况下,echo 和return的结果都是一样的。但如果出现函数嵌套或者函数比较多的情况,
echo会无效或者发生错误。所以处理函数的返回或者输出还是用return好。
4、比如我项目中碰到的这个问题,因为要在浏览器输出内容,所以用echo比较合适。如果是需要一个可以被其它函数调用的返回值的话,建议还是用return.