Back to index

php5  5.3.10
nophar.phar.inc
Go to the documentation of this file.
00001 <?php
00002 $fname = dirname(__FILE__) . '/nophar.phar';
00003 @unlink($fname);
00004 $p = new Phar($fname);
00005 $p['index.php'] = '<?php include "b/c.php";' . "\n";
00006 $p['web.php'] = '<?php echo "web\n";';
00007 $p['b/c.php'] = '<?php echo "in b\n";$a = fopen("index.php", "r", true);echo stream_get_contents($a);fclose($a);include dirname(__FILE__) . "/../d";';
00008 $p['d'] = "in d\n";
00009 $p->setStub($p->createDefaultStub('index.php', 'web.php'));
00010 ?>