<?php
require 'VersionTranslater.php';
/* Perform a full directory translation */ $source = '/var/www/php-5.3/' ; $destiny = '/var/www/php-5.2/' ;
$vt = VersionTranslater::getTranslator($source); $vt->translateTo($destiny);
/* Trasnlates a single file */ $source = '/var/www/example_5.3/Class.php' ; $destiny = '/var/www/example_5.2/Class.php' ;
$vt = VersionTranslater::getTranslator($source); $vt->translateTo($destiny);
|