PHP Classes

File: test_cache.php

Recommend this page to a friend!
  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: 17 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
?>