类别 : 后端技术
Error at offset有可能是编码的问题可以自定义函数解决function diy_unserialize($str){ $str=preg_replace_callback('...
nginx报502错误有的时候是PHP代码语法错误 ,在nginx下无法显示详细错误我们可以找到/www/server/php/73/etc/php-fpm.conf文件
一、管理端口列出 dmz 级别的被允许的进入端口# firewall-cmd --zone=dmz --list-ports允许 tcp 端口 8080 至 dmz 级别# firewall-cmd ...
有关用户登录的信息记录在 utmp(/var/run/utmp)、wtmp(/var/log/wtmp)、btmp(/var/log/btmp) 和 lastlog(/var/log/lastlog)...
apache实现方式: Options +FollowSymlinks -Multiviews RewriteEngine On RewriteRule upload/(.*).(php)$ - [...
if($post['id']allowfield(true)->save($post);}else{ // allowfield只针对模型方法中的save有效果 $r...
public function s404(){ http_response_code(404);// return $this->fetch('portal@/404...
// $val = $currentSheet->getCellByColumnAndRow($currentColumn, $currentRow)->getValue();// ...
在不进行特殊设置的情况下,phpExcel将读取的单元格信息保存在内存中,我们可以通过PHPExcel_Settings::setCacheStorageMethod()来设置不同的缓存方式,已达到降...
function _getCountDays($sTime, $eTime){ $startDt = getdate($sTime); $endDt = getdate($eTime); ...
如果需要对复杂的条件验证唯一,可以使用下面的方式:// 多个字段验证唯一验证条件'name' => 'unique:user,status^account',// 复...
参考:https://www.kancloud.cn/zoujingli/wechat-developer/521163 $jine = $this->request->param(...
打包和压缩在linux中,打包和压缩可以说是两个不同的概念,弄清这两个概念对于我们理解复杂的文件后缀有非常大的帮助打包将若干个文件和目录打包在一起变成一个大的文件,这时只是简单的打包,所以一般打包后的...
$background = "http://img.infinitynewtab.com/wallpaper/" . mt_rand(1, 4000) . ".jpg";
try { $sql=file_get_contents(dirname(__DIR__) . '/data/web.sql'); $instanc...
在我们的开发过程中,往往会遇到对会员或者商家进行收益排行,分别按照当月,当周或者当日进行排序;当然,你可以先把用到的数据获取到,然后再根据你想要的功能对数据进行相应处理。下面,我要给大家演示的是直接对...
/* 文字自动换行 * @param $card 画板 * @param $str 要换行的文字 * @param $width 文字显示的宽度,到达这个宽度自动换行 * @param $x 基础 x...
php后端处理代码function import_excel(){ set_time_limit(0); if(isset($_FILES["file"]) &...
$arr=[ ['id'=>3,'name'=>'pg'], ['id'=>2,'name'=>'t...