<?php
try {
$a = new PharData('/path/to/my.tar');
$a->addFile('/full/path/to/file');
$b = $a['full/path/to/file']->getContent();
$a->addFile('/full/path/to/file', 'my/file.txt');
$c = $a['my/file.txt']->getContent();
$a->addFile('http://www.example.com', 'example.html');
} catch (Exception $e) {
}
?>