Echo ' The output is empty, considering that it may have been parsed by PHP
But what I want to do is to textare the PHP statement directly back to the results of PHP parsing
Can be implemented with Eval but cannot return any errors,
So I want to write a file, read the way to solve the file
Is there any good way to solve this?
if (empty ($_request)) {
$html = <<< EOF
Submit
EOF;
Echo $html;
}else{
$content = $_REQUEST['content']; $content = preg_replace('/;/',';',$content);// 分号容易犯错 $string = addslashes($content); // echo $string; // echo '
'; if(eval($string) === false){ echo '输入错误'; }
}
Reply content:
Echo ' output is empty, considering that it may have been parsed by PHP
But what I want to do is to textare the PHP statement directly back to the results of PHP parsing
Can be implemented with Eval but cannot return any errors,
So I want to write a file, read the way to solve the file
Is there any good way to solve this?
if (empty ($_request)) {
$html = <<< EOF
Submit
EOF;
Echo $html;
}else{
$content = $_REQUEST['content']; $content = preg_replace('/;/',';',$content);// 分号容易犯错 $string = addslashes($content); // echo $string; // echo '
'; if(eval($string) === false){ echo '输入错误'; }
}
Echo '
You want to output the contents of < > and other special symbols to the Web page, to be processed with the Htmlspecialchars function ... Not addslashes, Addslashes is used to deal with SQL filtering ...