开发者

Detect every request to server using PHP or javascript

Is it possible to get every request to server using Javascript or PHP if javascript not possible ? Thx for helpin开发者_如何学Pythong me...


No, neither Javascript nor PHP will allow this. Your server, however, is probably already logging all requests. Apache does and I'm sure just about all other web servers do the same. You can read those log files with PHP if you need to display something from them in a web application. There are also numerous "log analysis" applications you can use to see the requests in a more graphic form.


With PHP you should be able to get all server requests with

$_REQUEST

http://us.php.net/manual/en/reserved.variables.request.php

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜