#<?php
#function a()
#{
# $raw='';
# $raw.=$_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'] . ' ' . $_SERVER['SERVER_PROTOCOL'] . "\r\n" ;
# foreach($_SERVER as $key => $value)
# {
# if(substr($key,0,5)==='HTTP_')
# {
# $key=substr($key,5);
# $raw.=$key . ' : ' . $value . "\r\n";
# }
# }
# $raw.="\r\n";
# $raw.=file_get_contents('php://input');
# return $raw;
#}
#function b()
#{
# $data=date("Y/m/d H:i:s") . "\r\n" . a() . "\r\n\r\n";
# $f=fopen("/tmp/logs.txt","a");
# fwrite($f,$data);
# fclose($f);
#}
#b();
#?>
PHP-流量监控
共计 0 条评论,点此发表评论