Re: Installing to Web Root Dir

From: Date: Thu, 06 Nov 2008 21:51:19 +0000
Subject: Re: Installing to Web Root Dir
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-51018@lists.php.net to get a copy of this message
On Sat, Nov 1, 2008 at 7:10 AM, Igor Feghali <igor.feghali@gmail.com> wrote: > Dear Friends, > > Anyone please can help me getting this piece of package.xml: > > <dir name="www"> > <dir name="mdb2_schematool"> > <file name="action.php" role="www" /> > <file name="class.inc.php" role="www" /> > <file name="index.php" role="www" /> > <file name="result.php" role="www" /> > </dir> > </dir> <!-- /www --> > > actually installing files to web_root/mdb2_schematool instead of > web_root/www/mdb2_schematool ? I believe what you're looking for is the "install as" option in package.xml v2. <phprelease> <filelist> <install as="mdb2_schematool/action.php" name="www/mdb2_schematool/action.php" /> <install as="mdb2_schematool/class.inc.php" name="www/mdb2_schematool/class.inc.php" /> <install as="mdb2_schematool/index.php" name="www/mdb2_schematool/index.php" /> <install as="mdb2_schematool/result.php" name="www/mdb2_schematool/result.php" /> </filelist> </phprelease> In PEAR_PackageFileManager2 you can use: $pkg->addInstallAs('www/mdb2_schematool/action.php', 'mdb2_schematool/action.php'); ... Igor, could you try that and let us know if it works? -- Brett Bieber

« previous php.pear.dev (#51018) next »