Berkeley CSUA MOTD:Entry 41403
Berkeley CSUA MOTD
2019/01/23 [General] UID:1000 Activity:popular

2006/1/17-18 [Computer/SW/Languages/Web] UID:41403 Activity:low
1/17    CGI or PHP, which one is better?
        \_ PHP.
        \_ CGI is actually the method by which pretty much all dynamic web
           applications function.  If you mean "CGI scripts", then that doesn't
           really say anything about what language/system you're using.  Perl?
           /bin/sh?  C?
           \_ Uhm, no. That was ten years ago. PHP is usually built into the
              webserver, so you don't need CGI anymore. Use PHP.
              \_ What do you mean "build into the webserver"?  You mean mod_php
                 like mod_perl?
                 \_ Exactly, vs. using mod_CGI.
                    \_ PHP is a language.  It can be loaded as a module
                       into the web server, or not.  Same with perl.  -tom
              \_ need is subjective.  If you trust everyone and every app they
                 install, yes, you don't need cgi.
                 \_ What? You think CGI is inherently more safe than something
                    that is a module to apache? On what basis? CGI is only as
                    safe as what you allow people to hook into.
           \_ More proof above that most motd posters don't have real jobs.