Date: Sat, 25 Sep 2004 20:45:04 -0700 (PDT) From: "Richard Lynch" <ceo@l-i-e.com> To: JohnsoBS@vicksburg.navy.mil Cc: freebsd-questions@freebsd.org Subject: RE: PHP Problem Message-ID: <4027.24.148.51.115.1096170304.squirrel@www.l-i-e.com> In-Reply-To: <CE2BFBAA80DD874BB737A4E2C53AA44903B017B4@CG69UBD01> References: <CE2BFBAA80DD874BB737A4E2C53AA44903B017B4@CG69UBD01>
next in thread | previous in thread | raw e-mail | index | archive | help
JohnsoBS@vicksburg.navy.mil wrote: > You installed the CGI port.. You need to install the apache module. CGI > doesn't allow embedded php in the page. Just for the record: Unless the FreeBSD port does something really really really bogus, the above statement is 100% wrong. :-) Perhaps you are thinking of Perl CGI versus Mod_Perl (sp?) where such a distinction (I think) does exist. PHP as CGI and PHP as Module have very minor differences, primarily related to functions/security that would make no sense in CGI or vice versa. EG: You can't do HTTP Auth via CGI in PHP because, by definition, you'd be passing the password between applications in an insecure way. This is not to say that the rest of the post [cut] isn't true -- In 99% of the cases of using PHP to spew out HTML, you want PHP installed as a Module. You may also, as I do, find it incredibly easy to use as a command line scripting language and thus also want the CGI (or CLI these days) install as well. -- Like Music? http://l-i-e.com/artists.htm
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4027.24.148.51.115.1096170304.squirrel>