Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: perl or php?

by batkins (Chaplain)
on Nov 23, 2003 at 15:06 UTC ( #309285=note: print w/replies, xml ) Need Help??


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.]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://309285]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2022-12-03 23:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?