Login   Register  
PHP Classes
elePHPant
Icontem

File: test_cache.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Radek Piekarz  >  Simple TMX class  >  test_cache.php  >  Download  
File: test_cache.php
Role: Example script
Content type: text/plain
Description: Example file
Class: Simple TMX class
Retrieve text translations from XML files
Author: By
Last change: Added 2 comments
Date: 8 years ago
Size: 340 bytes
 

Contents

Class file image Download
<?php
error_reporting
(E_ALL);
ini_set('display_errors'1);

require_once(
'tmx.php');





$tmx = new tmx('test_1.xml''en');
$t = array();
$t $tmx->getResource();


echo 
$t['hello'];
#$cache->cache_remove('en'); //if we want to delete cached file
#echo $tmx->resource['hello']; //another way to access file resource
?>