Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

testargs.php 545B

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