From owner-freebsd-questions@FreeBSD.ORG Sun Sep 26 03:44:59 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCD8B16A4CF for ; Sun, 26 Sep 2004 03:44:59 +0000 (GMT) Received: from o2.hostbaby.com (o2.hostbaby.com [208.187.29.121]) by mx1.FreeBSD.org (Postfix) with SMTP id 6E38F43D4C for ; Sun, 26 Sep 2004 03:44:59 +0000 (GMT) (envelope-from ceo@l-i-e.com) Received: (qmail 46584 invoked by uid 1001); 26 Sep 2004 03:45:04 -0000 Received: from 24.148.51.115 (SquirrelMail authenticated user ceo@l-i-e.com); by www.l-i-e.com with HTTP; Sat, 25 Sep 2004 20:45:04 -0700 (PDT) Message-ID: <4027.24.148.51.115.1096170304.squirrel@www.l-i-e.com> In-Reply-To: References: Date: Sat, 25 Sep 2004 20:45:04 -0700 (PDT) From: "Richard Lynch" To: JohnsoBS@vicksburg.navy.mil User-Agent: Hostbaby Webmail X-Mailer: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal cc: freebsd-questions@freebsd.org Subject: RE: PHP Problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ceo@l-i-e.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Sep 2004 03:44:59 -0000 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