...
This commit is contained in:
parent
e63eac93d8
commit
8e1e5ab752
|
@ -21,11 +21,16 @@
|
||||||
echo $lang;
|
echo $lang;
|
||||||
echo nl2br("\n");
|
echo nl2br("\n");
|
||||||
|
|
||||||
$output = exec("python3 y2t.py " . $ulr . " " . $lang, $output);
|
// Open a pipe to the python script
|
||||||
sleep(5);
|
$handle = popen("python3 y2t.py $url $lang", "r");
|
||||||
echo $output;
|
while (!feof($handle)) {
|
||||||
|
$output = fread($handle, 1024);
|
||||||
|
echo $output;
|
||||||
|
}
|
||||||
|
$exitCode = pclose($handle);
|
||||||
|
|
||||||
echo nl2br("\n");
|
echo nl2br("\n");
|
||||||
echo "check"
|
echo "end of php";
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue