We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this questionI'm very interested in the Facebooks php extension xhp (http://github.com/facebook/xhp/wiki), but I didn't use it so far.
I was wondering if anyone can share personal experience with xhp and point me into direction where I can find tutorials ab开发者_JS百科out it (wiki on github is very poor).
Thanks everyone.
Here you go :)
- Installing, Configuring, and Using the XHP PHP Extension by Facebook
php.net provides a pretty good all-around tutorial on compiling PECL-style extensions. This is how you'll install xhp.
In my experience, it's really a joy to use. And the safety net that is XHP's automatic, context-aware escaping is a real aspirin-saver.
That said, you can incur pretty hefty penalties for using XHP. Personally, I wouldn't touch it without APC or the like installed. See Lerdorf's anecdote on the topic of performance.
Overall, if you have the time, I'd definitely recommend trying it out. Only data will tell you if it's right for your site, though. And, as always, Google is your friend.
Here is some good information on XHP by a Facebook Engineer.
精彩评论