InfoQ

交流

讨论:Php 的两种模块有什么区别吗?

作者 lsqzhj 发布于 0000-00-00 分类:php基础编程

PHP是分服务器模块和CGI处理方式这两种模块吗?
它们有什么区别?
哪个更好些?
我怎么区分或着说怎么得到我的PHP模块是什么样的?



逛论坛交流Php 的两种模块有什么区别吗?

加入书签
digg+,
reddit+,
del.icio.us+,
dzone+

3 条回复

回复

>应该是以模块化与CGI两种运行方式吧 .. 发表人 xky1414 发表于 10月02日
>PHP 4 for Windows comes in two flav.. 发表人 qsy_627 发表于 10月02日
  1. 返回顶部

    Re: Php 的两种模块有什么区别吗?

    2003年10月02日 发表人 xky1414

    >应该是以模块化与CGI两种运行方式吧
    我的理解是:
    CGI方式的话要是用一个线程处理一个用户的请求。如果有100个用户就有100个进程。
    模块化是当一个用户请求是系统调用相应的模块来处理,今后一直用这个模块响应这一类请求,当有新的一类请求时,再调用相应的模块。
    不知有没有解释清。

  2. 返回顶部

    Re: Php 的两种模块有什么区别吗?

    2003年10月02日 发表人 qsy_627

    >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. 返回顶部

    Re: Php 的两种模块有什么区别吗?

    2003年10月02日 发表人 lsqzhj

    >我的英文水平可不行,过了一次四级没有过,就再不想看它了。




  4. 我有话要讲:(可以匿名发表, 发广告的有多远请滚多远!!!)

    昵称: 请输入验证码:


抢着回答

pengpeng,咱们学校实验室爆炸了!

http://news.sina.com.cn/c/2003-06-12/02161160803.shtml

如何用服务器自定时执行相关mysql操作?

现在碰到这样的情况,就是需要用LINUX服务器定时来生成一些记录,...

我写的网页里变量怎么不能传递呢?

首页: 123 递交的页面:...

还是图片按钮提交表单问题

我提过这个问题:图片按钮提交后,用isset()判断图片按钮是否提交...

用户名和密码框怎么总不一样长?

在表单中,用户名和密码框怎么总不一样长?当把密码框的类型改为...

周杰伦

[ Full Screen ]

一个密码认证问题

index.php xxxxxxxxxx ...

session的问题

我注册的session为什么会有时候会突然没有,要我重新登录。这个问...

怎么比较两个ip是否相同~

如题~

地主来了.............

.......老大还远吗?

[]