PHP Classes

File: Examples/README.md

Recommend this page to a friend!
  Classes of Christian Vigh   PHP Command Line Arguments Parser   Examples/README.md   Download  
File: Examples/README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Command Line Arguments Parser
Parse and extract arguments from the command line
Author: By
Last change: Update of Examples/README.md
Date: 2 years ago
Size: 649 bytes
 

Contents

Class file image Download

This directory contains several example scripts to be used in command-line mode. To run them, open a shell session then cd to an example directory, as for :

$ cd 01.general

Then run the script either by invoking the PHP executable and supplying additional arguments after the script names :

$ php example.php [additional arguments...]

or you can also set the execution permission for all example scripts :

$ chmod +x examples//.php

then run them by simply specifying their name :

$ cd 01.general
$ example.php 			# If you have "." in your PATH environment variable or...
$ ./example.php 		# ... if you have not