Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (17 sloc) 472 Bytes
<?php
if (!Phar::canWrite()) {
die("Phar is in read-only mode, try php -d phar.readonly=0 web/create.php\n");
}
@unlink(__DIR__ . '/project.phar');
$p = new Phar(__DIR__ . '/project.phar', 0, 'project.phar');
$p->buildFromDirectory(__DIR__);
$stub = <<<'EOD'
<?php
Phar::interceptFileFuncs();
Phar::mungServer(array('REQUEST_URI', 'PHP_SELF', 'SCRIPT_NAME'));
Phar::WebPhar(null, 'web.php');
echo "Web Only version";
exit -1;
__HALT_COMPILER();
EOD;
$p->setStub($stub);
Jump to Line
Something went wrong with that request. Please try again.