20 lines
455 B
PHP
Executable File
20 lines
455 B
PHP
Executable File
<head>
|
|
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">
|
|
<link rel="stylesheet" href="custom.css">
|
|
</head>
|
|
<?php
|
|
|
|
$v = $_POST['usuario'];
|
|
$v2 = $_POST['u2'];
|
|
$v3 = $_POST['u3'];
|
|
$v4 = $_POST['u4'];
|
|
$command = escapeshellcmd("sudo ./servo.py $v");
|
|
$output = shell_exec($command);
|
|
|
|
echo "This is a test, you turned your servo to $v degrees <br>";
|
|
echo "you also added $v2, $v3 and $v4"
|
|
|
|
//header("Location:ejemplo1.html");
|
|
|
|
?>
|