自PHP FastCGI的接口? (快点?) [英] Custom PHP FastCGI interface? (Faster?)

查看:130
本文介绍了自PHP FastCGI的接口? (快点?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你如何建立自己的FastCGI的接口PHP?

How do you build your own FastCGI interface in PHP?

我想要做类似的事情,以他们'什么再在Perl 做,但是在PHP。它甚至有可能?难道是更快?

I'd like to do something similar to what they're doing in Perl, but in PHP. Is it even possible? Would it be faster?

(也就是说,我希望能够加载一个Web应用程序框架的一次的入内存,然后才有的FastCGI调用一个方法我为每一个请求,因此没有比较通用的那就是在默认PHP FastCGI的设置发生的PHP-间preTER的preloading。)

(That is, I'd like to be able to load a web app framework once into memory, and then just have FastCGI call a method I provide for every request. So not the more generic preloading of the PHP-interpreter that is happening in the "default" PHP FastCGI setup.)

干杯!

修改的?是不是杂种和回报率这样做,以及)

(Edit: Isn't Mongrel and RoR doing this as well?)

好,我做了一个刻着'的图现在:)

Ok I've made a freakin' diagram now :)

推荐答案

我可能被误认为(这是已故),但不是你只是试图做一些形式的缓存?无论如何,FastCGI的接口似乎相当明确。因此,它应该可以做你想做什么,还算方便。

I may be mistaken (it's late) but aren't you just trying to do some form of caching? Regardless, the FastCGI interface seems to be fairly well defined. So, it should be possible to do whatever you want, fairly easily.

这篇关于自PHP FastCGI的接口? (快点?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆