Back to index

php5  5.3.10
frontcontroller8.phar.inc
Go to the documentation of this file.
00001 <?php
00002 @unlink(dirname(__FILE__) . '/frontcontroller8.phar');
00003 $a = new Phar(dirname(__FILE__) . '/frontcontroller8.phar');
00004 $a['a.phps'] = 'hio1';
00005 $a['a1.phps'] = '<?php var_dump($_SERVER[b"REQUEST_URI"], $_SERVER[b"PATH_INFO"]);';
00006 $a['a.jpg'] = 'hio2';
00007 $a['a.php'] = '<?php function hio(){}';
00008 $a['fronk.gronk'] = 'hio3';
00009 $a['404.php'] = 'My 404 is rawesome';
00010 $a['noext'] = 'hi';
00011 $a['unknown.ext'] = '<?php var_dump("hi");';
00012 $a['bigfile.txt'] = str_repeat('a', 8193);
00013 $a['fatalerror.phps'] = '<?php oopsie_daisy();';
00014 $a->setStub('<?php
00015 Phar::webPhar("whatever", "index.php", "404.php", array("jpg" => "foo/bar", "phps" => Phar::PHP, "php" => Phar::PHPS));
00016 echo "oops did not run\n";
00017 var_dump($_ENV, $_SERVER);
00018 __HALT_COMPILER();');
00019 ?>