RE: [PHP] should be simple
| From: | Jason Murray | Date: | Mon, 21 May 2001 02:17:18 +0000 |
| Subject: | RE: [PHP] should be simple | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-53654@lists.php.net to get a copy of this message | ||
> It seams all I have to do is put <?echo $cheader?> at the top of the
> page and it should work just like putting variables into a page.
>
> But is does nothing. I would look in the manual or the archives but I
> don't no wear or what to look for. It seams this should be simple what
> am I missing hear
It sounds to me like you're trying to store PHP code in the database and
have it execute it before sending it to the browser, is this correct?
If it is:
You can't do this just like that. Your PHP code is text in the database,
and when PHP pulls it out and echo's the whole thing it'll just send it
to the browser. You might need to use eval(). More info:
http://www.php.net/manual/en/function.eval.php
If it's not:
I got the wrong idea, so please explain some more. :)
Jason