Originally posted by thorpe
i wouldn't recommend it, but, you might take a look at the [man]eval/man function.
I read that somewhere else after I posted :p ... I tried it but its tossing parsing errors. Here is the entire contents of the database table that I'm pulling from.
<html>
<head>
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />
<link rel=\"stylesheet\" href=\"default.css\" type=\"text/css\" />
<style type=\"text/css\" media=\"screen\">
</style>
<title></title>
</head>
<?
if (preg_match("/msie.[4|5|6]/i\",$_SERVER[\"HTTP_USER_AGENT\"])) {
include \"ie.html\";
exit();
}
?>
<body>
<div id=page_shadow>
<center>
<img src=logo.png>
</center>
<div id=page1>
</div>
<div id=page>
<img src=nav.png>
<div id=menu>
<?
$firstcontent = include \"query1.php\";
eval($firstcontent);
?>
</div>
<div id=menu1>
Clickables
<br><a href=\"http://www.techiekb.com/\">|   Home   | </a><br>
<a href=\"http://www.techiekb.com/about\">|   About   | </a><br>
<a href=\"http://www.techiekb.com/getslacked\">|   Slackware Packages   |</a><br>
<a href=\"http://www.techiekb.com/network\">|   Network Docs   | </a><br>
<a href=\"http://www.techiekb.com/graphs\">|   Graphs   | </a><br>
<a href=\"http://www.techiekb.com/unix\">|   Unix Docs   | </a><br>
<a href=\"http://www.techiekb.com/thelab\">|   The Lab   | </a><br>
<a href=\"http://www.t-mobilepictures.com/gotissues68\">|   Photoblog (T-Mobile) | </a><br>
<a href=\"http://www.techiekb.com/photos\">|   Random Photos   | </a><br>
<a href=\"http://www.techiekb.com/contact\">|   Contact   | </a><br>
</div>
<? include \"query.php\"; ?>
<img src=nav.png>
</div>
</div>
When I use eval() I get the following error:
Parse error: parse error, unexpected '>' in /home/drew/public_html/content-test.php(11) : eval()'d code on line 3
Am I missing something in the usage?