![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP
$深度
这个作者很懒,什么都没留下…
展开
-
PHP与JS使用多行字符串
1.php$errorerror = <<<"LIST"LIST;2.jses6的模板字符串或者使用数组拼接或加号拼接3./etc/init.d/php-fpm-{52|53|54|55|56|70|71} restart ==> 重启phpfpm //得到拼团订单主键 //echo $myid = $_GPC['id']...原创 2019-12-05 20:31:59 · 352 阅读 · 0 评论 -
查看占用端口的进程以及PHP设置error_log
查看占用80端口的程序netstat -anpt(program)kill -9 pidps aux |grep nginx回调php时输出内容进行debugphp可以开启错误日志(在可写入目录中,不写会在当前脚本目录下)file_put_contents('1.log', 'asdasdasd');; 错误日志log_errors = On; 显示错...原创 2019-12-02 21:38:29 · 92 阅读 · 0 评论 -
PHP二维数组排序
<?php$data = array( array( 'id' => 5698, 'first_name' => 'Bill', 'last_name' => 'Gates', ), array( 'id' => 4767, 'first_name' => 'Steve', 'last_name' ...原创 2019-12-02 21:37:58 · 68 阅读 · 0 评论 -
phpExcel
下面是总结的几个使用方法include 'PHPExcel.php';include 'PHPExcel/Writer/Excel2007.php';//或者include 'PHPExcel/Writer/Excel5.php'; 用于输出.xls的创建一个excel$objPHPExcel = new PHPExcel();保存excel—2007格式$objWrit...原创 2019-12-02 21:37:49 · 94 阅读 · 0 评论 -
php使用ffmpeg在上传视频时截取第一帧为视频缩略图
public function doPageuploadDakaVideo(){ global $_GPC, $_W; load()->func('file'); $filename = file_upload($_FILES['dakavideo'], 'video'); $new_thumb_name = preg_replace('/...原创 2019-12-02 21:37:36 · 740 阅读 · 0 评论