<?php /* * Replacer class usage example */ error_reporting(E_ALL); include('replacer.class.php'); $repl = new Replacer(); $repl -> inputDirectory('in'); $repl -> outputDirectory('out'); $repl -> replaceVariable(array('varname'=>'changed_varname')); $repl -> replaceFunction('funcname', 'changed_funcname'); $repl -> replaceClass('classname', 'changed_classname'); $repl->findReplace(); echo $repl->log(); ?>
|