aboutsummaryrefslogtreecommitdiffstats
path: root/install/testargs.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-01 15:10:05 -0700
committerfriendica <info@friendica.com>2012-11-01 15:10:05 -0700
commitec6ed3221dc9801683c8d6f3a9bbe4ea38ed09c6 (patch)
tree53ded18236e628a89f0b607ea99b5f5608bc206b /install/testargs.php
parent3f7530417aa6443b8e3fd8b137c890e4f3590979 (diff)
downloadvolse-hubzilla-ec6ed3221dc9801683c8d6f3a9bbe4ea38ed09c6.tar.gz
volse-hubzilla-ec6ed3221dc9801683c8d6f3a9bbe4ea38ed09c6.tar.bz2
volse-hubzilla-ec6ed3221dc9801683c8d6f3a9bbe4ea38ed09c6.zip
move some more stuff to the install directory
Diffstat (limited to 'install/testargs.php')
-rw-r--r--install/testargs.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/install/testargs.php b/install/testargs.php
new file mode 100644
index 000000000..a8af836d0
--- /dev/null
+++ b/install/testargs.php
@@ -0,0 +1,21 @@
+<?php
+
+/**
+ *
+ * File: testargs.php
+ *
+ * Purpose:
+ * During installation we need to check if register_argc_argv is
+ * enabled for the command line PHP processor, because otherwise
+ * deliveries will fail. So we will do a shell exec of php and
+ * execute this file with a command line argument, and see if it
+ * echoes the argument back to us. Otherwise notify the person
+ * that their installation doesn't meet the system requirements.
+ *
+ */
+
+
+if((argc() > 1) && isset(argv(1)))
+ echo $argv[1];
+else
+ echo '';