PHP versus CGI

Alain Farmer alain_farmer at yahoo.com
Tue Feb 17 15:32:54 EST 2004


>> * PHP deals with many of the intricit details ;

> Did you mean "intrinsic" or "explicit"? ;-)

Intricate, e.g. a large number of small details.

> Can you elaborate? What kind of details?

With PHP, all the web-form's elements are
automatically assigned to variables, with variable
names with the same name as the corresponding
form-item, such that you can use them immediately in
your script without any hassle whatsoever.

With CGI, you have to handle the appleEvent (on a
Mac), you have to parse the request, fetch the
information of the form, decode the special chars,
etc. Then, and only then, can you USE the info
submitted in/to your script. That's a lot of extra
work, particularly if you're also using any of the
environment-variables of HTTP.

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html


More information about the metacard mailing list