\documentclass{article}
\usepackage{ulem}
\usepackage{graphicx}
\usepackage{hyperref}
\pagestyle{headings}
\begin{document}
\part{PEAR-style Packages}
\section{Using files in the data dir}
Finding the data stuff isn't difficult, use a replacement:

<pre><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></pre>
and in \texttt{filethatusesit.php}:

<pre><code class="language-php">
<?php
// ...
\$namedcolorslocation = '@data-dir@/named\_colors.txt';
\$fp = fopen(\$namedcolorslocation);
</code></pre>
Note that this does not work if using Horde's \texttt{create\_symlinks.php} to install PEAR packages.

\end{document}
