PHP Classes

File: testargv.php

Recommend this page to a friend!
  Classes of Dennis T Kaplan   CLI args   testargv.php   Download  
File: testargv.php
Role: Example script
Content type: text/plain
Description: Example usage
Class: CLI args
Parse and process command line arguments
Author: By
Last change: Accessible without user login
Date: 13 years ago
Size: 554 bytes


Class file image Download
#!/usr/bin/env php

 * This file has been created to test the class argv();
include_once 'argv.php';

$obj = new argv();
$obj->set_text('You must be in the MVC root folder when executing!');
$obj->set_text('Set config file name');

$result = $obj->run($argv);
$cfg = $result['cfg'];

"\n\n\tParsing your $cfg\n\n";
"\n\n\tParsing END\n\n";