Re: Gettnig PHP code out of a DB?

From: Date: Fri, 13 Jun 2003 05:53:09 +0000
Subject: Re: Gettnig PHP code out of a DB?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-151333@lists.php.net to get a copy of this message
*sigh* Just do: eval($msg); Ben Houlton wrote:
I use
       echo $msg;
       eval("\$msg = \"$msg\";");
       echo $msg;
and it comes up with include("menu.php"); on the live page "Leif K-Brooks" <eurleif@buyer-brokerage.com> wrote in message news:3EE96137.2030805@buyer-brokerage.com...
www.php.net/eval Ben Houlton wrote:
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)
     
-- The above message is encrypted with double rot13 encoding. Any
unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.general (#151333) next »