[cvs] [Wiki] changed: Doc/PEAR

Chuck Hagenbuch chuck at horde.org
Thu Oct 27 17:25:35 PDT 2005


chuck  Thu, 27 Oct 2005 17:25:35 -0700

Modified page: http://wiki.horde.org/Doc/PEAR
New Revision:  1.1
Change log:  initial notes

@@ -1 +1,23 @@
++ PEAR-style Packages
 
+[[toc]]
+
+++ Using files in the data dir
+
+Finding the data stuff isn't difficult, use a replacement:
+
+<code>
+<file name="named_colors.txt" role="data"/>
+<file name="filethatusesit.php" role="php>
+ <replace from="@data-dir@" to="data_dir" type="pear-config"/>
+</file>
+</code>
+
+and in filethatusesit.php:
+
+<code type="php">
+<?php
+// ...
+$namedcolorslocation = '@data-dir@/named_colors.txt';
+$fp = fopen($namedcolorslocation);
+</code>


More information about the cvs mailing list