pengpeng,咱们学校实验室爆炸了!
http://news.sina.com.cn/c/2003-06-12/02161160803.shtml
- 娱乐乐园,
作者 lsqzhj 发布于 0000-00-00 分类:php基础编程
PHP是分服务器模块和CGI处理方式这两种模块吗?
它们有什么区别?
哪个更好些?
我怎么区分或着说怎么得到我的PHP模块是什么样的?
逛论坛交流:Php 的两种模块有什么区别吗?
>应该是以模块化与CGI两种运行方式吧
我的理解是:
CGI方式的话要是用一个线程处理一个用户的请求。如果有100个用户就有100个进程。
模块化是当一个用户请求是系统调用相应的模块来处理,今后一直用这个模块响应这一类请求,当有新的一类请求时,再调用相应的模块。
不知有没有解释清。
>PHP 4 for Windows comes in two flavours - a CGI executable (php.exe),
and several SAPI modules (for exapmle php4isapi.dll). The latter form
is new to PHP 4, and provides significantly improved performance and
some new functionality. However, please note that the SAPI modules
are *NOT* yet considered to be production quality.
In particular, with the ISAPI module, you are likely to encounter serious
reliability problems especially on platforms older than W2K - you may
witness a lot of server 500 errors and suffer from other server modules
such as ASP also failing. You have been warned!
The reason for this is that the PHP SAPI modules are using the
thread-safe version of the PHP code, which is new to PHP 4, and has
not yet been tested and pounded enough to be considered completely
stable, and there are actually a few known bugs. On the other hand,
some people have reported very good results with the SAPI modules,
and there a few reports of problems with the Apache module version.
In short - your mileage may vary; If you need
absolute stability, trade the performance of the SAPI modules
with the stability of the CGI executable.
>我的英文水平可不行,过了一次四级没有过,就再不想看它了。
3 条回复
回复