From owner-freebsd-questions@FreeBSD.ORG Tue Oct 26 06:27: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 12AF916A4CE for ; Tue, 26 Oct 2004 06:27:59 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9235A43D5D for ; Tue, 26 Oct 2004 06:27:58 +0000 (GMT) (envelope-from gert.cuykens@gmail.com) Received: by wproxy.gmail.com with SMTP id 65so153224wri for ; Mon, 25 Oct 2004 23:27:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=lC3rfZpkfylSn6wzUsKMUG2q6Z9EsuUfyQaOPztO2rrIWF/8LGRf6GVpCLDLaPAqNH5kD4ZY2sWuLVFUSNNea3jcFUGmjsKhCu6QLofVdP0shUFrYPjqBJCBoJImMKk3SrJ89I2T4D90OADmrAOIfpiVK5VmE6yVavsEoWouWKo= Received: by 10.38.102.69 with SMTP id z69mr186263rnb; Mon, 25 Oct 2004 23:27:57 -0700 (PDT) Received: by 10.38.72.65 with HTTP; Mon, 25 Oct 2004 23:27:57 -0700 (PDT) Message-ID: Date: Tue, 26 Oct 2004 08:27:57 +0200 From: Gert Cuykens To: Giorgos Keramidas In-Reply-To: <20041026061948.GB2122@gothmog.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20041026150629.6295505a@bofh.spyderweb.com.au> <20041026061948.GB2122@gothmog.gr> cc: freebsd-questions@freebsd.org Subject: Re: perl vs php round 1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Gert Cuykens List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2004 06:27:59 -0000 Dame you, now i still don't know which one to use PS what about python ? Doesn't google and nasa use python, i wonder why. It has defenatly the coolest name meaning i can make phyton aplications sounds way cooler then perl or php or java :P On Tue, 26 Oct 2004 09:19:48 +0300, Giorgos Keramidas wrote: > On 2004-10-26 08:02, Gert Cuykens wrote: > > i want to learn something that is capable to run applications on the > > web but is totally separated from the html meaning i HATE doing this > > > > hello.php > > > > code > > 110101110101010111101010 > > code > > html > > he look at me > > html > > code > > 1010101011010101010101 > > code > > html > > he look at me > > html > > > > i want to do this > > > > hello.class > > code > > 10101010101111001110101111111 > > code > > > > hello.html > > html > > look at me > > html > > > > And i would defenatly want something with classes > > This can be done just as easily with mod_perl as with php. It all depends on > the level of abstraction that you choose to write your HTML pages in. > > You can write PHP code like this: > > > > <?php connect_to_database; grab title; print title; ?> > > > > mixed with a lot of HTML code and php escapes; ?> > > > > or use your own templates for the pages you want created, and write one-liners > like the ones below: > > > > > > and encapsulate things in larger, logical units within the xxxpage() > collection of functions, possibly using classes if you like doing so ;-) > > It's all a matter of programming style and spending the time necessary to > design your sites infrastructure, if you ask me. I've used php for the > samples above, but mod_perl can be used too. > >