Back to index

php5  5.3.10
frontcontroller14.phar.inc
Go to the documentation of this file.
00001 <?php
00002 @unlink(dirname(__FILE__) . '/frontcontroller14.phar');
00003 $a = new Phar(dirname(__FILE__) . '/frontcontroller14.phar');
00004 $a['html/index.php'] = '<?php
00005 var_dump($_SERVER[b"PATH_INFO"]);
00006 var_dump($_SERVER[b"PATH_TRANSLATED"]);
00007 ';
00008 $a->setStub('<?php
00009 function s($a)
00010 {
00011     return "/html/index.php";
00012 }
00013 Phar::interceptFileFuncs();
00014 Phar::mungServer(array("PHP_SELF", "REQUEST_URI"));
00015 Phar::webPhar("whatever", "/html/index.php", null, array(), "s");
00016 echo "oops did not run\n";
00017 var_dump($_ENV, $_SERVER);
00018 __HALT_COMPILER();');
00019 ?>