This commit is contained in:
edbrz9 2022-12-29 13:11:55 +01:00
parent 8e1e5ab752
commit 6a3414d718
1 changed files with 4 additions and 9 deletions

View File

@ -21,16 +21,11 @@
echo $lang;
echo nl2br("\n");
// Open a pipe to the python script
$handle = popen("python3 y2t.py $url $lang", "r");
while (!feof($handle)) {
$output = fread($handle, 1024);
echo $output;
}
$exitCode = pclose($handle);
$output = exec("python3 y2t.py $ulr $lang", $output, $return_code);
wait($return_code);
echo $output;
echo nl2br("\n");
echo "end of php";
echo "check"
?>