From 6ded3100b21c6e5ad23ff34dae7bcdf78a7a5bf7 Mon Sep 17 00:00:00 2001 From: tianyu Date: Sat, 25 Jul 2015 15:38:44 +0800 Subject: [PATCH] Create http.php --- net/http/http.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 net/http/http.php diff --git a/net/http/http.php b/net/http/http.php new file mode 100644 index 0000000..e4a2176 --- /dev/null +++ b/net/http/http.php @@ -0,0 +1,34 @@ +>/tmp/out.txt 2>&1 &"); + $i = 0; + foreach ($files as $file) { + shell_exec("./http.sh '".$file."' '".$names[$i]."' >>/tmp/http.txt 2>&1 &"); + $i = $i+1; + } + exit; + } else { + echo json_encode(array("error" => "empty file")); + } + break; + case 'GET': + echo '
+ LINKS:
+
+ NAMES:
+
+ +
'; + break; + } +?>