Re: Gettnig PHP code out of a DB?
| From: | Ignatius Teo | Date: | Fri, 13 Jun 2003 05:48:19 +0000 |
| Subject: | Re: Gettnig PHP code out of a DB? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151331@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Ben Houlton" <kaoru_cut@hotmail.com>
To: <php-general@lists.php.net>
Sent: Friday, June 13, 2003 2:49 PM
Subject: [PHP] Gettnig PHP code out of a DB?
Er...you need to eval() it to get it to parse/run.
> Is there a way to get PHP script/code out of a DB? Becasue, when I
enter PHP
> code into the textbox and hit submit, and go check the page it has
nothing
> there with <?php xxxxxxx ?> and just shows the code, e.g.
> include("menu.php"); without the <? ?> tags, the code I'm using to
import
> the DB text is below:
>
> } elseif ($id == $row["id"] && $cat == $row["cat"] &&
$row["xtra"] ==
> php) {
>
> $msg = $row["msg"];
>
> $msg;
>
> }
>
> Thank you for your time!
> -Ben
>
> (Note: My post didn't come up before, if it does, sorry for double
posting)
>