开发者

Reduce server resources and compilation of php to C++

I've searched tutorials of how to reduce server resources (CPU, memory...) in a website, using php (if it's possible) , but in vain (maybe I couldn't choose good keywords).

If the only way to manage server ressources is the c++ language (php compiled to ). How can we write a c++ code that can do this task (without using facebook's hiphop). and how does this c++ file work in a server ? (I'll be glad for some tutorials about t开发者_开发问答hat!).

I've worked with memcached to reduce connections to the database, But I don't know if it can do all the task.

thank you in advance.


You do not have to do this at all.

There are lots of opcode caching like, APC - this will compile PHP script into opcode cache and the cache is reusable until the PHP script updated again or the date validity exceeded.

What is opcode cache?

Which PHP opcode cacher should I use to improve performance?

PS: eAccelerator is dead (not longer maintained)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜