#!/usr/bin/env php
/**
* compact php code.
*
* strip comments, combine entire library into one file.
*/
if ($argc print strip unecessary data from php source files.nntusage: php compactor.php destination.php source.php;
exit;
}
$source = $argv[2];
$target = $argv[1];
print compacting $source into $target.n;
include $source;
$files = get_included_files();
print_r($files);
$out = fopen($target, 'w');
fwrite($out, '