Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of eridal  >  Version Translator  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: simple class usage example
Class: Version Translator
Convert PHP code between namespaces and PEAR names
Author: By
Last change:
Date: 3 years ago
Size: 430 bytes
 

Contents

Class file image Download
<?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);