Re: Include php code as variable
| From: | CC Zona | Date: | Sat, 03 Aug 2002 15:21:45 +0000 |
| Subject: | Re: Include php code as variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110963@lists.php.net to get a copy of this message | ||
In article <00d501c23ada$87050590$3404a8c0@alawi>,
alawi@php4web.com (Alawi) wrote:
> How can I Include my php code code as variable and excute it ?
include() can return a value, assignable to a variable. Some other ways to
get the content of a file (I assume that's why you're saying "include")
into a variable: file(), fread().
eval() can execute the value of a variable as PHP code.
http://php.net/include
http://php.net/file
http://php.net/fread
http://php.net/eval
--
CC