« Return to Thread: Installing to Web Root Dir

Re: Installing to Web Root Dir

by Brett Bieber :: Rate this Message:

Reply to Author | View in Thread

On Sat, Nov 1, 2008 at 7:10 AM, Igor Feghali <igor.feghali@...> 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

--
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

 « Return to Thread: Installing to Web Root Dir