一个很简易的代码测试程序,方便大家平时工作
适用于所有运行PHP的环境
适用于所有运行PHP的环境
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<style>
#textarea{width:800px;height:300px;margin:10px auto;}
#content{width:800px;height:300px;margin:100px auto;}
#textarea textarea{border:1px solid #eee;color:#F75000;}
#title{width:100%;height:auto;text-align:center;font-size:14px;}
#content textarea{border:1px solid #eee;color:#6985ef;}
body{color:#666;}
</style>
<body>
<div id="title">
<span>风居住的地方</span>
<br/>
<span>QQ:819434425</span>
</div>
<div id="textarea">
请在下方输入PHP代码:
<form action="" method="POST">
<textarea cols="100" rows="20" name="code">
<?php
if (isset($_POST['code']))
echo stripcslashes($_POST['code']);
?>
</textarea>
<br/>
<input type="submit" name="sub" value="执行"/>
</form>
</div>
<br/>
<div id="content">
执行结果:
<textarea cols="100" rows="20">
<?php
if (isset($_POST['code']))
eval(stripcslashes($_POST['code']));
?>
</textarea>
<br/>
</div>
</body>
</html>
精彩图集
精彩文章






