1 2 3 4 5 6 7 8 9 10 11 | <?php if (file_exists('phpinfo.phar')) { unlink('phpinfo.phar'); } $phar = new Phar('phpinfo.phar'); $phar->addFromString('www/index.php', '<?php phpinfo();?>'); $phar->setStub( '<?php Phar::webPhar(null, "www/index.php"); echo "cli\n"; __HALT_COMPILER(); ?>' ); ?> |