Back to index

php5  5.3.10
frontcontroller12.phar.inc
Go to the documentation of this file.
00001 <?php
00002 @unlink(dirname(__FILE__) . '/frontcontroller12.phar.tar');
00003 $a = new Phar(dirname(__FILE__) . '/frontcontroller12.phar.tar');
00004 $a['index.php'] = '<?php
00005 var_dump($_SERVER["PHP_SELF"]);
00006 var_dump($_SERVER[b"SCRIPT_NAME"]);
00007 var_dump($_SERVER[b"SCRIPT_FILENAME"]);
00008 var_dump($_SERVER[b"REQUEST_URI"]);
00009 var_dump($_SERVER[b"PHAR_PHP_SELF"]);
00010 var_dump($_SERVER[b"PHAR_SCRIPT_NAME"]);
00011 var_dump($_SERVER[b"PHAR_SCRIPT_FILENAME"]);
00012 var_dump($_SERVER[b"PHAR_REQUEST_URI"]);
00013 ';
00014 $a->setStub('<?php
00015 Phar::mungServer(array("PHP_SELF", "SCRIPT_NAME", "SCRIPT_FILENAME", "REQUEST_URI"));
00016 Phar::webPhar();
00017 echo "oops did not run\n";
00018 var_dump($_ENV, $_SERVER);
00019 __HALT_COMPILER();');
00020 ?>