aboutsummaryrefslogtreecommitdiffstats
path: root/testargs.php
diff options
context:
space:
mode:
authorroot <root@diekershoff.homeunix.net>2010-12-12 10:34:34 +0100
committerroot <root@diekershoff.homeunix.net>2010-12-12 10:34:34 +0100
commit2e9dca7c9f0e50956723505ad576bf32e762d11e (patch)
treedbe956c31285682bc620ccb7c5f03f2e3785c6e7 /testargs.php
parent037cd5d80993dedfccfe9ef25679c54297ef1546 (diff)
parenta50343830f87966b5857be295633d8dff576931a (diff)
downloadvolse-hubzilla-2e9dca7c9f0e50956723505ad576bf32e762d11e.tar.gz
volse-hubzilla-2e9dca7c9f0e50956723505ad576bf32e762d11e.tar.bz2
volse-hubzilla-2e9dca7c9f0e50956723505ad576bf32e762d11e.zip
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'testargs.php')
-rw-r--r--testargs.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/testargs.php b/testargs.php
index 65e56ec3e..4c9bce4e9 100644
--- a/testargs.php
+++ b/testargs.php
@@ -1,5 +1,20 @@
<?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