Home > Backend Development > PHP Tutorial > PHP 如何获取客户机的每一个请求

PHP 如何获取客户机的每一个请求

WBOY
Release: 2016-06-13 13:28:08
Original
1155 people have browsed it

PHP 怎么获取客户机的每一个请求
PHP 怎么获取客户机的每一个请求,比如说一个游客进了一个页面,游客的浏览器会下载很多网页里用到的文件,怎么用PHP来获取这些来自客户机的请求信息?

------解决方案--------------------
Web服务器日志里有详细记录,PHP去分析日志还行,图片请求php怎么去获取?
------解决方案--------------------
php 里有预订义的全局变量...
------解决方案--------------------
在你那个页面加个统计也算较精确了,反正下载大多都要经过那个页面
或者使用header跳转, 把所有下载链接都用 http://example.com/download.php?url=http://example.com/hello.zip 。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template