Read .CONF file with PHP
<p>I am trying to read a file name current.conf and then use the name of a folder saved in it to opendir(); when I open: </p>

<pre><code>$file = fopen("current.conf","r");
$lines = fread($file,"10");
fclose($file);

$lines = "/".$lines."/";

echo $lines;

$dir=opendir($lines);

$files=array();
while (($file=readdir($dir)) !== false)
{
if ($file != "." and $file != ".." and $file != "index.php")
{
array_push($files, $file);
}
}
closedir($dir);
</code></pre>

<p>The current.conf has only one line in it:</p>

<pre><code>2.1-2328
</code></pre>

<p>I am not able to open the folder that is named in the conf files. I have a feeling it has to do with the formatting of the conf file but not sure. </p>
