Posted: Wed Jun 23, 2004 4:59 am
Code: Select all
eval('return "'.str_replace('"','"',$msg).'";');A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
eval('return "'.str_replace('"','"',$msg).'";');Code: Select all
<?php
include('admin/header.php'); // get connection information
$row = mysql_fetch_array($rs);
$msg = $row['public'];
eval('return "'.str_replace('"','"',$msg).'";');
include('admin/strings.php');
echo($msg);
?>Code: Select all
$output = eval(.....);
echo($output);Code: Select all
<?php
$msg = <<<EOS
<html>
<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Test</title>
</head>
<body>
<div align="center"><?php echo"test"; ?></div>
</body>
EOS;
$msg = eval('?>' . $msg);
echo $msg;
?>Code: Select all
$msg = eval('?>' . $msg);
echo $msg;Code: Select all
eval('?>' . $msg);Code: Select all
<?php
include('admin/header.php'); // get connection information
$row = mysql_fetch_array($rs);
$msg = $row['public'];
$msg = eval('return "',str_replace('"','"'.$msg).'";');
include('admin/strings.php');
echo($msg);
?>Code: Select all
<html>
<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Test</title>
</head>
<body>
<div align="center"><?php echo"test"; ?></div>
</body>That's not the code snippet I offered.Archy wrote:The was the code that i was using:
Code: Select all
<?php include('admin/header.php'); // get connection information $row = mysql_fetch_array($rs); $msg = $row['public']; $msg = eval('return "',str_replace('"','"'.$msg).'";'); include('admin/strings.php'); echo($msg); ?>