Back to index

php5  5.3.10
Variables
phar_from_dir.php File Reference

Create phar archive from directory. More...

Go to the source code of this file.

Variables

if($argc< 3) $phar = new Phar($argv[1], 0, 'newphar')
 $dir = new RecursiveDirectoryIterator($argv[2])

Detailed Description

Create phar archive from directory.

Author:
Marcus Boerger
Date:
2003 - 2007
Version:
1.0

Usage: php phar_create_from_dir.php <archive> <directory> [<regex>]

Create phar archive <archive> using entries from <directory> that optionally match <regex>.

Definition in file phar_from_dir.php.


Variable Documentation

$dir = new RecursiveDirectoryIterator($argv[2])

Definition at line 33 of file phar_from_dir.php.

if ($argc< 3) $phar = new Phar($argv[1], 0, 'newphar')

Definition at line 31 of file phar_from_dir.php.