added example php script
authorpk910 <philipp@zoelle1.de>
Mon, 17 Oct 2011 23:53:29 +0000 (01:53 +0200)
committerpk910 <philipp@zoelle1.de>
Mon, 17 Oct 2011 23:53:29 +0000 (01:53 +0200)
scripts/example.php.txt [new file with mode: 0644]

diff --git a/scripts/example.php.txt b/scripts/example.php.txt
new file mode 100644 (file)
index 0000000..090b3f4
--- /dev/null
@@ -0,0 +1,11 @@
+<?php
+//example script
+//bind it with:
+//  +bind example extscript php scripts/example.php.txt $n $1 $2 $3 %1+
+
+echo "Hello ".$argv[1].", this is an external PHP Script :)\n";
+echo "Your parameters:\n";
+for($i = 2; $i < count($argv); $i++) {
+    echo"  ".$argv[$i];
+}
+?>
\ No newline at end of file