From 93804649ac568caadf69c330158e619ad1e728ea Mon Sep 17 00:00:00 2001 From: edbrz9 Date: Thu, 29 Dec 2022 14:12:48 +0100 Subject: [PATCH] check --- proj/y2t/handler.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/proj/y2t/handler.php b/proj/y2t/handler.php index efc5d3d..0c8520a 100644 --- a/proj/y2t/handler.php +++ b/proj/y2t/handler.php @@ -35,7 +35,16 @@ echo $output; echo nl2br("\n END OF THE OUTPUT\n"); - echo "check" + echo "check"; + + $url = 'https://www.youtube.com/watch?v=GNbTRJHbC4Q'; + $cmd = 'youtube-dl ' . escapeshellarg($url); + exec($cmd, $output, $ret); + echo 'output: '; + var_export($output); + echo "\nret: "; + var_export($ret); + ?>