摘要:
最近在用 lumen 做前后分离接口 添加跨域 导致 无法下载excl 只需要修改跨域中间件就好了 public function handle($request, Closure $next){ if($request->isMethod('OPTIONS')) { $response = res 阅读全文
摘要:
存放在这个文件夹内 调用使用 比如调用 Loader::import('tools.alioss.oss',EXTEND_PATH,'.php'); 则可直接调用 key 存放 调用方法 即可调用 阅读全文
摘要:
php用xml进行交互时 报错 打印返回错误 异常详细信息: System.Xml.XmlException: 分析 EntityName 时出错。 第 37 行,位置 96。 发现xml不能使用特殊字符 & < 在传输内容前加上 阅读全文
摘要:
if(count($avail) == count($avail, 1)){ echo ‘一维数组’;}else{ echo ‘多维’;}count第二个参数 添加1或者COUNT_RECURSIVE,count()会递归地计算该数组。 阅读全文
摘要:
$arr 内容 <aaa> <bbb Value="11111" Type="222"/> <bbb Value="0000" Type="333"/> </aaa> 阅读全文
摘要:
yum update 服务器 yum install php php-pear php-devel httpd gcc pear 执行安装包 devel 执行工具 httpd 安装apache服务器 gcc 执行编译 安装swoole pecl install swoole 安装swoole 在ph 阅读全文
摘要:
SELECT * FROM `table` AS t1 JOIN (SELECT ROUND(RAND() * ((SELECT MAX(id) FROM `table`)-(SELECT MIN(id) FROM `table`))+(SELECT MIN(id) FROM `table`)) A 阅读全文