note 98323 added to phar.mount

From: Date: Wed, 09 Jun 2010 10:20:44 +0000
Subject: note 98323 added to phar.mount
Groups: php.notes 
Request: Send a blank email to php-notes+get-169963@lists.php.net to get a copy of this message
i tested phar to generate a one file drupal installation. as every cms, drupal put all uploaded files in a seperate folder (i.e. /sites). i think the mount options here expected a file, i didnt get it to work on mounting a folder. is there any possibility to do that? to generate a phar out of drupal7 with sqlite database build.php $phar = new Phar('drupal7.phar'); $phar->buildFromDirectory(dirname(__FILE__) . '/drupal-7.0-alpha5'); $phar->setStub("<?php Phar::interceptFileFuncs(); Phar::mount('sites/default/settings.php', __DIR__ . '/sites/default/settings.php'); Phar::mount('database.db', __DIR__ . '/database.db'); Phar::webPhar(); __HALT_COMPILER(); ?>" ); to call the phar iam using a .htacces file: RewriteCond %{REQUEST_URI} !^/drupal.phar/ RewriteCond %{REQUEST_URI} !build.php RewriteRule ^(.*)$ /drupal.phar/$1 ---- Server IP: 69.147.83.197 Probable Submitter: 217.6.68.98 ---- Manual Page -- http://www.php.net/manual/en/phar.mount.php Edit -- https://master.php.net/note/edit/98323 Del: integrated -- https://master.php.net/note/delete/98323/integrated Del: useless -- https://master.php.net/note/delete/98323/useless Del: bad code -- https://master.php.net/note/delete/98323/bad+code Del: spam -- https://master.php.net/note/delete/98323/spam Del: non-english -- https://master.php.net/note/delete/98323/non-english Del: in docs -- https://master.php.net/note/delete/98323/in+docs Del: other reasons-- https://master.php.net/note/delete/98323 Reject -- https://master.php.net/note/reject/98323 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#169963) next »