Page 1 of 1

Calling OUT file file from PHP

Posted: Wed Feb 08, 2006 3:04 pm
by Krishma
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

Posted: Wed Feb 08, 2006 3:12 pm
by John Cartwright
Double posting is a big no no :?

Original thread: viewtopic.php?p=236704&highlight=#236704

Topic locked.