【发布时间】:2011-05-07 19:17:28
【问题描述】:
我不太明白 Nginx 和 Apache 有什么区别?
我想使用 PHP Comet 技术进行聊天。我喜欢这样:
while($modification_date == filemtime($filename)) {
sleep(2);
}
//$filename was updated and we retrieve new messages and give them to the user with JSON help
它当然在 Apache 中不起作用。它可以在 Nginx 中工作吗?
请不要向我提供 NodeJS 和其他产品。
【问题讨论】:
-
我不太明白你的问题。您是在问它们之间的区别是什么,或者为什么您的代码不能在 Apache 上运行?请问你的问题能稍微清楚一点吗?
-
@Peter Hamilton:实际上我想知道两者,因为我认为它是相关的。