Is fast-cgi a drop-in replacement for mod_php?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Evil Son

    Is fast-cgi a drop-in replacement for mod_php?

    Hello group,

    If I switched from mod_php to fast-cgi, would I need to make any
    changes to my php source?

    Also, will something like APC still be useful?

    Will my database connections suddenly become persistent?

    If I had static data in my script, will it persist when that same
    script is called again?

    Essentially, my question is: is fast-cgi a drop-in replacement for
    mod_php?

    Thank you for your time.

    E Wilson
  • Jerry Stuckle

    #2
    Re: Is fast-cgi a drop-in replacement for mod_php?

    Evil Son wrote:
    Hello group,
    >
    If I switched from mod_php to fast-cgi, would I need to make any
    changes to my php source?
    >
    Not much.
    Also, will something like APC still be useful?
    >
    If you find it useful now, yes.
    Will my database connections suddenly become persistent?
    >
    Nope.
    If I had static data in my script, will it persist when that same
    script is called again?
    >
    Nope.
    Essentially, my question is: is fast-cgi a drop-in replacement for
    mod_php?
    >
    Pretty much. But nothing will give you the behavior you're looking for.
    The web is by nature transactional, and all languages act the same way
    - scripts are initialized when you call them and do not carry over
    values or connections from previous executions.
    Thank you for your time.
    >
    E Wilson
    >

    --
    =============== ===
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    • Michael Fesser

      #3
      Re: Is fast-cgi a drop-in replacement for mod_php?

      ..oO(Evil Son)
      >Here is what caused me to ask how things worked for PHP:
      >http://www.fastcgi.com/devkit/doc/fa...intro.htm#8485
      If you think of the PHP interpreter itself being the FastCGI application
      and not your own script, then things might become more clear. It's just
      the interpreter that is kept in memory and running as described on the
      page, but your own scripts are still re-evaluated on every request.

      Micha

      Comment

      Working...