From owner-freebsd-questions@FreeBSD.ORG Thu Jun 18 16:40:01 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A3461065670 for ; Thu, 18 Jun 2009 16:40:01 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 3651D8FC15 for ; Thu, 18 Jun 2009 16:39:59 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id n5IGdg3q042407; Thu, 18 Jun 2009 18:39:42 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id n5IGdfK0042404; Thu, 18 Jun 2009 18:39:41 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Thu, 18 Jun 2009 18:39:40 +0200 (CEST) From: Wojciech Puchar To: Polytropon In-Reply-To: <20090618182023.fc008be0.freebsd@edvax.de> Message-ID: References: <200906181155.n5IBtfU1046242@dc.cis.okstate.edu> <20090618182023.fc008be0.freebsd@edvax.de> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Martin McCormick , freebsd-questions@freebsd.org Subject: Re: Automated Production of Web Pages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jun 2009 16:40:01 -0000 > HTMLPP=cpp -C -P -traditional actually it's the way i make webpages. >> automate this process? > > Forgive my polite disagreement, but according to your description > which sounds to describe a relatively easy problem, PHP looks > like really too much, "too big" for this job. (I don't use PHP > very often, so my opinion might not be the best one to rely on.) PHP is popular, and like most popular things isn't very good. Maybe it's easy for some people (for me - not much), and fits someone's needs, it could be used but as PREPROCESSOR. There is no sense to generate webpage every time someone watch it, unless it's contents changes every time someone watch it. PHP interpreter can be called from command line, and output HTML to file like that php -f file.php >file.html This can be done from cron for example. It's not more efficient way, but more secure - there is no fear someone abuse any bugs in PHP code. PHP support in web server can be not loaded at all. >> That's why I love Unix. > > If you love UNIX, why not following its philosophy? Keep the > thing simple. Make one solution that solves the problem best, > nothing more, nothing less. As you said, it may take some time > to get it running, but when it runs, it will run nearly forever. I have my things going exactly that way - because - as you say - i keep things simple. No "modern" tools with it's unneeded overcomplexity.