39 lines
779 B
PHP
39 lines
779 B
PHP
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<title>Y2T</title>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
|
|
<div id="root">
|
|
|
|
<h4>Welcome on the handler page v2</h4>
|
|
|
|
<?php
|
|
echo nl2br("entering php\n");
|
|
$url = $_POST['url'];
|
|
echo $url;
|
|
echo nl2br("\n");
|
|
$lang = $_POST['lang'];
|
|
echo $lang;
|
|
echo nl2br("\n");
|
|
|
|
exec("python3 y2t.py $ulr $lang", $output, $return_code);
|
|
echo nl2br("executing the thing\n");
|
|
wait($return_code);
|
|
echo nl2br("wait is over, here is the output:\n");
|
|
echo $output;
|
|
echo nl2br("\n END OF THE OUTPUT");
|
|
echo "check"
|
|
?>
|
|
|
|
|
|
</div>
|
|
<script src="assets/js/vue.min.js"></script>
|
|
<script src="assets/js/app.js"></script>
|
|
|
|
</body>
|
|
</html>
|