怎么在不改变服务器配置的情况下用php将header里Connection设置为close啊
而且我用header(“Connection:close”)不管用啊
而且我用header(“Connection:close”)不管用啊
解决方案 »
- 求助 使用匹配查询mysql得到结果后如何在另外一个页面显示?
- 数据库查询的问题,急!急
- php在线人数统计
- 用php上传大文件 怎么解决?
- socket 设置超时问题
- 服务器配好,发贴留念兼散分
- 问一下,这样写错哪儿了?为什么回提示这样的错?Parse error: parse error, unexpected T_FOREACH in
- 急,请问php中调用外部程序时(比如调用一个c程序)能否传递参数给这个c程序,如何实现呢,谢谢各位
- 如何将某个目录下的全部文件都写上一段注释,同时。
- 一个关于PHP函数的问题!
- PHP字符截取问题,急急急
- 想请教一下 多线程编程 多进程编程是什么意思?PHP网站,是不是有一个用户连接,就会在服务器端产生一个进程?
header("Content-Length: 0");
header("Connection: close");
flush();
?>
$fp = fopen('/tmp/chinese_test.log', 'a');
fwrite($fp, "[" . strftime("%Y/%m/%d %H:%M:%S") . "] " . $_SERVER['QUERY_STRING'] . "\n");
fclose($fp);
header("Connection: close");
header("Content-Type: application/xml");
if (!array_key_exists('method', $_GET) or ($_GET['method'] != "callbacks.payment")) {
header("invocation-error: 3");
echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?><error_response><error_code>3</error_code></error_response>");
} elseif (!array_key_exists('sig', $_GET) or ($_GET['sig'] == "wrong")) {
header("invocation-error: 103");
echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?><error_response><error_code>103</error_code></error_response>");
} elseif (array_key_exists('exception', $_GET)) {
header("invocation-error: 1");
echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?><error_response><error_code>1</error_code></error_response>");
} else {
echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?><callbacks_payment_response>true</callbacks_payment_response>");
}
?>
这是我的代码
header("Content-Encoding: none\r\n");
ob_start();
echo ('这是处理和输出的内容');
$size = ob_get_length();
header("Content-Length: $size");
ob_end_flush();
flush();