apache无法获取Authorization解决方法修改.htaccess文件,根据具体情况添加如下配置RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1...
php7连接mongodb首先先要安装mongodb扩展这里提供一个简易的php mongodb类;<?php
/**
* Created by PhpStorm.
* User: adophper
* Date: 2019/1/17
* Time: 15:20
*/
/**
* mongodb操作类
* Class mongo
*/
class mongo
{
public $debug = true;
private static $_instance = [];
&nb...