How can I pass parameters from the command line to $_POST in a PHP script? October 16, 2022 by Magenaut I know this could sound a little weird, but I need to pass some parameters to the $_POST array. Similar to the way Apache does it, or any other web server.