Calling OUT file file from PHP
Posted: Wed Feb 08, 2006 3:04 pm
Hi:
I have two files:
1.
<HTML>
<HEAD
<H1 align = center>Filter Adminstrator Interface</H1>
<p> In order to start filter please press Start Button and if you want to stop filter press Stop</p>
<BODY>
<form action="test.php" method="post">
<input type="submit" name="submit" value="Start" />
<input type="button" name="stop" value="Stop" />
</form>
</HTML>
2.
<?php
echo '<pre>';
$last_line = system('hello', $retval);
echo '
</pre>
<hr />Return value: ' . $retval;
?>
I am trying to call hello world complied program from first file. I am not able to get it right. Can anyone tell me what's wrong? They both are in same directory
Thanks a million
Kris
I have two files:
1.
<HTML>
<HEAD
<H1 align = center>Filter Adminstrator Interface</H1>
<p> In order to start filter please press Start Button and if you want to stop filter press Stop</p>
<BODY>
<form action="test.php" method="post">
<input type="submit" name="submit" value="Start" />
<input type="button" name="stop" value="Stop" />
</form>
</HTML>
2.
<?php
echo '<pre>';
$last_line = system('hello', $retval);
echo '
</pre>
<hr />Return value: ' . $retval;
?>
I am trying to call hello world complied program from first file. I am not able to get it right. Can anyone tell me what's wrong? They both are in same directory
Thanks a million
Kris