Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (17 sloc) 472 Bytes
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');
$stub = <<<'EOD'
Phar::mungServer(array('REQUEST_URI', 'PHP_SELF', 'SCRIPT_NAME'));
Phar::WebPhar(null, 'web.php');
echo "Web Only version";
exit -1;
Jump to Line
Something went wrong with that request. Please try again.