导致该问题的原因在于没有配置curl.cainfo,该配置位于php.ini中。 解决方案: 1)下载cace […]
mac 重启php-fpm
查看php-fpm端口是否在被php-fpm使用
1 |
sudo lsof -i:9000 |
浅谈php中使用websocket
在PHP中,开发者需要考虑的东西比较多,从socket的连接、建立、绑定、监听等都需要开发者自己去操作完成,对 […]
is_uploaded_file总是返回false的问题
is_uploaded_file ile总是返回false,根据以下方法进行检查,全部检查通过。 [crayo […]
php7.1以上 mcrypt_generic_open is deprecated 报错处理
php7.1以上. mcrypt_generic_open is deprecated 这个错误, 就是因为m […]
curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
参考地址:http://blog.csdn.net/sanbingyutuoniao123/article/d […]
ThinkPHP5.0(六)PHP处理excel文件流程,PHPExcel
##从前台获取文件: 前台代码
1 2 3 4 |
<input id='location' type="text" class="controls" disabled>//用来显示选择的文件 <input type="button" id="i-check" value="选择报名表" class="btn btn-sm btn-success" onclick="$('#i-file').click();" style="margin-top: -2px"> <input type="file" id='i-file' name="examfile" accept=".xlsx,.xls" onchange="$('#location').val($('#i-file').val());" style="display: none"> //隐藏的存文件的目录 |
前台获取文件 […]
利用PHPExcel 实现excel数据的导入导出(源码实现)
在开发过程中,经常会遇到导入导出的需求,利用phpexcel类实现起来也是比较容易的,下面,我们一步一步实现 […]
php读取excel文件数据的导入和导出
在之前有写过一篇文章讲述了使用PHP快速生成excel表格文件并下载,这种方式生成Excel文件,生成速度很快 […]
PHP imagettftext(): Could not find/open font 错误
症状:验证码上只有背景图没有文字 Warning: imagettftext() [function.imag […]
php-浮点数计算,double类型数加减乘除必须用PHP提供的高精度计算函数
一、前方有坑 php在使用加减乘除等运算符计算浮点数的时候,经常会出现意想不到的结果,特别是关于财务数据方面的 […]
从某广告软文上摘下来的PHP程序员的进阶图谱
第一阶段1-2年 第二阶段2-3年 第三阶段3-5年