Error: You are using PHP for CGI. To execute create_invoice.php from command line, you must use PHP for CLI mode.