Calling OUT file file from PHP

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Locked
User avatar
Krishma
Forum Newbie
Posts: 6
Joined: Tue Feb 07, 2006 10:30 am
Location: Montreal

Calling OUT file file from PHP

Post 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
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Double posting is a big no no :?

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

Topic locked.
Locked