\documentclass{article}
\usepackage{ulem}
\pagestyle{headings}
\begin{document}
\part{PEAR-style Packages}
\tableofcontents

PEAR-style PackagesUsing files in the data dir

\section{Using files in the data dir}
Finding the data stuff isn't difficult, use a replacement:

\begin{verbatim}

<file name="named_colors.txt" role="data"/>
<file name="filethatusesit.php" role="php>
 <replace from="@data-dir@" to="data_dir" type="pear-config"/>
</file>
\end{verbatim}

and in \texttt{filethatusesit.php}:

\begin{verbatim}

<?php
// ...
$namedcolorslocation = '@data-dir@/named_colors.txt';
$fp = fopen($namedcolorslocation);
\end{verbatim}

Note that this does not work if using Horde's \texttt{create\_symlinks.php} to install PEAR packages.

\end{document}
