in reply to Re: perl or php?
in thread perl or php?

Often when PHP people talk about Perl, they refer to using it with the CGI. CGI is, well, a bit old. It might do what you want, but it turns out that PHP beats Perl via CGI hands down because PHP is actually mod_php and built directly into your Apache web server.
.....What? You still use CGI even when you use mod_perl. CGI is the Common Gateway Interface, the way Web clients pass data such as form entries to an application on a server. Whether your interpreter is running inside the web server or outside, you're still using CGI.

Are you sure it was a book? Are you sure it wasn't.....nothing?

Replies are listed 'Best First'.
Re: Re: Re: perl or php?
by revdiablo (Prior) on Nov 23, 2003 at 22:16 UTC
    You still use CGI even when you use mod_perl. CGI is the Common Gateway Interface, the way Web clients pass data such as form entries to an application on a server.

    Actually, no. CGI is an interface from servers to external applications. Clients have nothing to do with it. And when using mod_perl or mod_php, you are not using CGI. These are apache modules. They run directly in the apache process. In summary: CGI is external, modules are internal.

    [If you don't believe me, feel free to consult the CGI Intro linked from W3's CGI page. Notice the first sentence of that intro says "The Common Gateway Interface (CGI) is a standard for interfacing external applications with information servers, such as HTTP or Web servers." The emphasis is mine.]