简体   繁体   中英

Is it possible to compile a php application made with Symfony using HipHop PHP?

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?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM