php - 任何做“真实”的方法法西奇?
我一直在 fcgi 设置中使用 perl 和 ruby,并计划将 php 的大型代码库从 mod_php 迁移到 fcgi,我查看了 php 站点,发现他们支持 fcgi,并且 5.3 有 fpm 来提高 fcgi 的易用性但我无法在 php 中找到事件循环的任何示例 - 我想我稍后会查找...好吧,现在已经晚了,我吓坏了,因为我认为 fcgi 是 fcgi然后我读到了这个:
http://blog.milkfarmsoft。 com/2006/06/fastcgi-in-php-the-way-it-could-be/
“PHP 的 fastcgi SAPI 不会向 PHP 应用程序公开 runloop,但是 相反,它在自身内部实现。结果,我们仍然有 “退出时一切都会被清理”模式,这让我们没有 预初始化任何东西的可能性。”
omfg :(
该网站每天获得数百万的页面浏览量,重写 fcgi 应该可以节省数百万的 php 和 mysql 打开/lib 设置和 memcache 打开等。
有什么办法可以用 php 做“真正的”fcgi 吗?提前感谢您的任何想法。
I have been using perl and ruby in a fcgi setting and was planning to migrate a large code base of php from mod_php to fcgi, I looked at the php site and saw they supported fcgi and 5.3 has fpm to improve the ease of use of fcgi but I was unable to find any examples of the event loop in php - I thought I will look for that later... Well, now it is later and I am freaking out because I assumed fcgi was fcgi then I read this:
http://blog.milkfarmsoft.com/2006/06/fastcgi-in-php-the-way-it-could-be/
"PHP’s fastcgi SAPI doesn’t expose runloop to the PHP application,but
implements it inside of itself,instead. As a result,we still have
“everything is cleaned up on exit”mode,which leaves us without
possibility to pre-init anything."
omfg :(
The site gets several million page views per day and the rewrite to fcgi was supposed to save millions of php and mysql opens/lib set ups and memcache opens, etc.
Is there any way to do "real" fcgi with php? Thanks in advance for any ideas.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论