开发者

Detect every request to server using PHP or javascript

开发者 https://www.devze.com 2022-12-17 01:01 出处:网络
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,

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

精彩评论

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

关注公众号