开发者

Where can I find tutorials on Facebook's XHP extension for PHP? [closed]

开发者 https://www.devze.com 2023-01-20 03:02 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

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 question

I'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.

0

精彩评论

暂无评论...
验证码 换一张
取 消