![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
相关问题
代码如下:
[PHP]
$cooperation_host = "www.xxx.com"; //www.xxx.com
$cooperation_port = "80";
$cooperation_url = "/test/test_coo.php";
$fp = fsockopen ($cooperation_host, $cooperation_port, $errno, $errstr, 30);
if($fp) {
fputs ($fp, "GET $cooperation_url HTTP/1.0\r\n\r\n");
$ret = "";
while (!feof($fp)) {
$ret .= fgets ($fp, 128);
}
fclose ($fp);
$ret = trim($ret);
}
[/PHP]
返回信息里apache信息如何去掉?
返回信息如下:
HTTP/1.1 200 OK Date: Thu, 17 Jul 2003 07:14:25 GMT Server: Apache/1.3.26 (Unix) Resin/2.1.4 PHP/4.1.2 X-Powered-By: PHP/4.1.2 Connection: close Content-Type: text/html ;;;我对你仰慕犹如滔滔江水连绵不绝,黄河泛滥一发而不可收拾…………我在拉肚子
提问者:shell 06-01 12:12
答复

