From e7ff1a795408f6ad4aae61a17a7e76b62d6a2bc1 Mon Sep 17 00:00:00 2001 From: Carlos V <76731844+cvc90@users.noreply.github.com> Date: Sat, 19 Aug 2023 10:19:47 +0200 Subject: [PATCH] Create mtr.php mtr.php file is created to perform "mtr" functions --- front/php/server/mtr.php | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 front/php/server/mtr.php diff --git a/front/php/server/mtr.php b/front/php/server/mtr.php new file mode 100644 index 00000000..5e541e64 --- /dev/null +++ b/front/php/server/mtr.php @@ -0,0 +1,40 @@ +"; + echo $output; + echo ""; + exit; +} + +// Test with the "Mtr" command +$output = shell_exec("mtr --report -c 4 $ip"); + +// Show the result +echo "
";
+echo $output;
+echo "
"; + +?>