这是我尝试过的:
<form method="POST" action="new.php">
<font color="#C0C0C0"><small>It doesn't highlight it but it still works. And feel free to resize it!</small></font><br />
<textarea name="high" class="prettyprint">Insert code here</textarea><br />
<button class="btn btn-large btn-success" type="submit">Debug</button>
</form>
</center>
<h1>Debug Info:</h1>
<pre><?php if(isset($_POST['high'])){
$high = (get_magic_quotes_gpc()) ? stripslashes($_POST['high']) : $_POST['high'];
eval($high);
}?></pre>
我需要它来评估来自 textarea 的代码,以便它执行 PHP 代码(我将 echo 'hi' 放在 textarea 中,它给出了这个错误:)Parse error: syntax error, unexpected '<' in /home/a3827523/public_html/new.php(44) : eval()'d code on line 1
我不知道是什么问题,但有人可以帮忙吗?