我用dreamweaver写了一个界面,是用来启动填写的路径处的应用程序的,在我自己电脑上启动我自己电脑上的一个工具(snort.exe),我看函数参考大全上说是用exec函数或者是用system函数来执行程序,但具体的PHP代码我却不知道该怎么来写,跪请高手帮忙添加下代码或者讲解下具体使用。界面代码如下:<html>
<head>
<title>Start Snort</title>
</head><body><div align="center">
<h1>Start Snort </h1>
<table width="304" height="131" border="1">
<tr>
<td height="92" colspan="2"><div align="center">
<p>choose path</p>
<form name="form1" method="post" action="">
Location:
<input type="text" name="textfield">
</form>
<p> </p>
</div></td>
</tr>
<tr>
<td width="137" height="31"><form name="form2" method="post" action="">
<div align="center">
<input type="submit" name="Submit" value="Start">
</div>
</form></td>
<td width="151"><form name="form3" method="post" action="">
<div align="center">
<input type="button" class="button1" onclick="document.location.href='/snort/index.php'" value="Reture">
</div>
</form></td>
</tr>
</table>
<p> </p>
</div>
</body>
</html>
<head>
<title>Start Snort</title>
</head><body><div align="center">
<h1>Start Snort </h1>
<table width="304" height="131" border="1">
<tr>
<td height="92" colspan="2"><div align="center">
<p>choose path</p>
<form name="form1" method="post" action="">
Location:
<input type="text" name="textfield">
</form>
<p> </p>
</div></td>
</tr>
<tr>
<td width="137" height="31"><form name="form2" method="post" action="">
<div align="center">
<input type="submit" name="Submit" value="Start">
</div>
</form></td>
<td width="151"><form name="form3" method="post" action="">
<div align="center">
<input type="button" class="button1" onclick="document.location.href='/snort/index.php'" value="Reture">
</div>
</form></td>
</tr>
</table>
<p> </p>
</div>
</body>
</html>
“我用dreamweaver写了一个界面,是用来启动填写的路径处的应用程序的,在我自己电脑上启动我自己电脑上的一个工具(snort.exe)"
显然这是在“桌面”方式下运行的,而在“网站”方式下是不行的