php 获取浏览器请求头
代码如下:
<?php foreach (getallheaders() as $name => $value) { echo "$name: $value <br>"; ?>