Skip to primary content

SYSbible

SYSbible

Main menu

  • Home
  • Contact

Post navigation

← Previous Next →

How to pass parameters to a PHP script executed through the command line

Posted on January 28, 2010 by unai

The syntax to pass parameters to PHP scripts executed command line is:

php script.php arg1 arg2 arg3

For more information:

  • Control your scripts with command-line PHP
  • PHP CLI: Sending parameters via command line
This entry was posted in cookbook, php and tagged command-line, php, scripting by unai. Bookmark the permalink.
Proudly powered by WordPress