6.0.0-alpha14
6/27/25
Last Modified 10/28/05 by Chuck Hagenbuch

PEAR-style Packages

Table of Contents

Using files in the data dir

Finding the data stuff isn't difficult, use a replacement:



<file name="named_colors.txt" role="data"/>

<file name="filethatusesit.php" role="php>

 <replace from="@data-dir@" to="data_dir" type="pear-config"/>

</file>

and in filethatusesit.php:

<?php


<?php

// ...

$namedcolorslocation = '@data-dir@/named_colors.txt';

$fp = fopen($namedcolorslocation);

?>