Read arguments

This PHP script can be used to read and validate shell command line arguments. It can parse the values of arguments passed to a PHP script started from a command line shell to validate them according to rules defined by the current script.

It supports mandatory arguments, optional arguments, switch arguments, multiple alternatives to an option switches, and a special argument that makes show a nicely formatted help usage message.

The script extract the argument values into an array if the argument rules are validated.

Requirements:
- PHP 3.0 or Higher

License type: BSD
Date added: 3 years, 5 months 26 days ago | Last updated: 3 years, 5 months 21 days ago

More popular Validation

This is actually one of the most advanced image hosting script. The imagetize key features: SEO, Ads Ready, Admin

Listing Files

  • read-cli-arguments.png
  • 4.0 KB
  • 09/30/2010 10:39:57
Hot Scripts
Sponsors