- exec: documentation ( source)
<?php
$NAME = $_POST['NAME'];
if(empty($NAME)) {
echo "<h2>text</h2>\n" ;
die ("text.");
}
?>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="text">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css.css">
<script src="js.js"></script>
<link rel="icon" href="favicon.png">
<title>text</title>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<div class="container">
<div class="starter-template">
<h1> text <?php echo $NAME?></h1>
<br>
<div class="progress">
<div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%">
</div>
</div>
</div>
</div>
<?php
exec("/var/www/script.sh $NAME");
?>