I am trying to execute a .bat file (m.bat) using a simple php script:
<?php
if(isset($_POST['submit']))
{
echo exec('m.bat');
echo "Done!";
} else {
?>
<form action="" method="post">
<input type="submit" name="submit" value="Run">
</form>
<?php
}
?>
this just displays the content of the .bat file in the browser, and if I drop the 'echo' before 'exec' it does nothing at all. :(