Skip to main content

ea-php-cli overly aggressive about -v flag?

Comments

2 comments

  • sparek-3
    This likely has to do with cPanel's modified /usr/local/bin/php to determine what version of PHP your account is using. Try running the script with the direct PHP binary for the respective PHP version: /opt/cpanel/ea-php70/root/usr/bin/php test.php -v I think that will work. Don't know of a solution (or if there is one) to using the /usr/local/bin/php binary.
    0
  • cPanelMichael
    'php test.php -v' should not print anything, because the -v is intended for the script.

    @Drandon Boss, Have you looked into the PHP getopt function? There are some examples of how to use it at: PHP: getopt - Manual Thank you.
    0

Please sign in to leave a comment.