Re: Re: [PHP] script preprocessor?

From: Date: Thu, 30 Aug 2001 16:13:42 +0000
Subject: Re: Re: [PHP] script preprocessor?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65320@lists.php.net to get a copy of this message
On Wednesday 29 August 2001 20:15, alvarez@sto13.st-oneline.de wrote: > I do not need a cmd-line utility but something I can use _in_ a PHP4 > script without the need to apply changes to the interpreter or weird > system interfaces. Something similiar to the #define preprocessing > instructions of cc (or hopefully more flexible) would suit my needs. Well, it kind of *is* like C's #define - it adds a kind of "compilation" step to the entire process. Preprocess all the scripts and then you upload them to the server. The problem with comparing things to C is that C is a compiled language anyway :) > If your programm can substitute script parts during a page request > it'd be nice if you could pass me a source copy. No, it can't. > Personally I've no idea how such a facility could be implemented if > not being part of the PHP core. if (FOOBAR == 42) { include ("code1.php"); } else { include ("code2.php"); } -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) CPU not found. retry, abort, ignore?

« previous php.general (#65320) next »