Re: Mixing eval() with include/require

From: Date: Thu, 21 Dec 2000 12:27:48 +0000
Subject: Re: Mixing eval() with include/require
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-31415@lists.php.net to get a copy of this message
I would try something like: $expr = implode(" ",file("test$id.inc")); and in your loop, do "eval($expr)". This way it only gets included once. - Tim ----- Original Message ----- From: "Mark Rogers" <mark-news@green-jelly.co.uk> To: <php-general@lists.php.net> Sent: Thursday, December 21, 2000 6:29 AM Subject: [PHP] Mixing eval() with include/require > I have several files containing PHP code, any one of which I need to bring > into PHP as a function at runtime. An example would probably explain it > best:

« previous php.general (#31415) next »