【发布时间】:2014-09-17 01:07:08
【问题描述】:
我在学习PHP Connection Handling,然后我用了一个脚本,不太了解它。
即
<?php
ob_end_clean();
header("Connection: close");
ignore_user_abort(); // optional
ob_start();
echo ('Text the user will see');
$size = ob_get_length();
header("Content-Length: $size");
ob_end_flush(); // Strange behaviour, will not work
flush(); // Unless both are called !
// Do processing here
sleep(30);
echo('Text user will never see');
?>
这导致了这个,see img。
即 localhost 没有显示任何文件和目录。当我在目录中尝试其他链接时,它显示 File Not Found。
我搜索过,但附近没有这样的问题。此外,我在 php 中找不到太多关于连接标头的信息。
我也试过了,
1.重启Apache2。 :失败
2. 重新安装整个灯服务器:FAILED
3. 完全移除 lamp-server 然后再次安装:失败
如果有人能提出可行的解决方案,我将不胜感激。
System : Lubunutu + Apache2
【问题讨论】:
-
任何人!我的发球不工作