]> git.mxchange.org Git - friendica.git/blob - testargs.php
notify and alias are now in gcontact as well - the contact expansion in mod/item...
[friendica.git] / testargs.php
1 <?php
2
3 /**
4  *
5  * File: testargs.php
6  *
7  * Purpose:
8  * During installation we need to check if register_argc_argv is
9  * enabled for the command line PHP processor, because otherwise
10  * deliveries will fail. So we will do a shell exec of php and
11  * execute this file with a command line argument, and see if it
12  * echoes the argument back to us. Otherwise notify the person
13  * that their installation doesn't meet the system requirements.
14  *
15  */
16
17
18 if(($_SERVER["argc"] > 1) && isset($_SERVER["argv"][1]))
19         echo $_SERVER["argv"][1];
20 else
21         echo '';