php对apache提供了类似的函数class apache_lookup_uri(string filename)一眼可以看出返回的是一个class,他包含以下属性:
status
the_request
status_line
method
content_type
handler
uri
filename
path_info
args
boundary
no_cache
no_local_copy
allowed
send_bodyct
bytes_sent
byterange
clength
unparsed_uri
mtime
request_time中间有你想要的吧~~但是要是你的Web服务器不是apache我就没辙了~

解决方案 »

  1.   

    我用的是 IIS, 那么 iis活动日志文件中对于服务器发送的字节数和服务器的状态(200,201,400等)是怎样获得的呢?
      

  2.   

    你用fsockopen写一个探测server的函数不就行了^^^
    前几天我写了一个,你看看合你的意么?
    http://php2000.com/~uchinaboy/bbs3000.php
      

  3.   

    uchinaboy(),有源码么?能给我一份么?
    email: [email protected]
      

  4.   

    请多多支持!http://www.csdn.net/expert/topic/236/236042.shtm