On Wednesday 29 August 2001 20:15, [EMAIL PROTECTED] 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?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to