Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi:
i am trying to run a exe (c++ compiled) file with Exec command PHP. After compilation I get on my Webpage "Process isTerminated". But actually process is running . I want to catch " Process is Terminated" . Anyone has any idea about it?Code: Select all
<?php
if(isset($_POST['Start']))
{
$start = 'start.bat'; ///Starts Exe file
exec($start);
header('Location: http://127.0.0.1:8080/tets.php');
}
if(isset($_POST['Stop']))
{
//Stops exe file
}
?>
<html>
<form action= "<?php echo $PHP_SELF;?>" method='post'>
Press Start:<input type='Submit' name='Start' value='Start'>
Press Stop:<input type='Submit' name='Stop' value='Stop'>
</form>
</html>Janu
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]