是否可以使用 HipHop PHP 编译由 Symfony 制作的 php 应用程序?
我使用 Symfony 框架用 PHP 编写了一个应用程序。现在我的网站流量不断增长,我确实需要使用 HipHop PHP 重新编译它。
有可能做到吗?重新编译后,是否需要使用fastcgi模块来运行它?
I wrote an application in PHP using the Symfony Framework. Now that the traffic to my site is growing, I really need to recompile it with HipHop PHP.
Is it possible to do it? After recompiling it, do I need to use fastcgi module to run it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不想听起来自命不凡,但你们真的打算拥有一个像 Facebook 一样大小的网站吗?大多数大型网站不使用 HipHop。他们只是使用高效的缓存(例如 Varnish)、良好的数据库优化(正确位置的索引等)和代码加速器(例如 APC),如果您确实决定这样做,我认为您不会真正注意到太大的差异使用嘻哈音乐。请记住,许多 PHP 函数在 HipHop 中也不起作用。
如果您使用 Symfony2,您是否研究过 ESI(Edge Side Includes)?
只是我的想法,但实际上我认为使用 HipHop 不值得。
I don't wish to sound pretentious but are you really going to have a site the size of facebook? Majority of large websites don't use HipHop. They just use efficient caching (Varnish for example), good database optimisation(indexes in the right places etc.), and code accelerators(such as APC) I don't think you will really notice much of a difference if you did decide to use HipHop. Bare in mind that a lot of PHP functions don't work in HipHop also.
If you're using Symfony2, have you looked into ESI (Edge Side Includes)?
Just my thoughts, but really I don't think it'll be worth the headache to use HipHop.
据我所知,HipHop 仅支持 PHP <= 5.2,所以如果你'如果您计划使用任何 PHP 5.3 功能,您需要弄清楚其他事情。我不明白为什么它不支持任何框架,只要它与 PHP 5.2 兼容。
As far as I know, HipHop only supports PHP <= 5.2, so if you're planning on using any PHP 5.3 features you'll need to figure out something else. I don't see why it wouldn't support any framework though, provided it's PHP 5.2-compatible.