Posted by Martin Jay on 05/05/06 17:57
In message <4c15g4F12q0b6U1@individual.net>, chlori <usenet314@arto.ch>
writes
>Martin Jay wrote:
>> if(is_dir($dir.$filename))
>> $class="dir";
>> else
>> $class="file";
>Now all links get a class="file", even if I have dirs and files... ?
Ooops. I forgot to mention that $dir needs a trailing /.
So:
$dir="/home/xyxy/public_html/xyxyx/files";
becomes:
$dir="/home/xyxy/public_html/xyxyx/files/";
:)
--
Martin Jay
Navigation:
[Reply to this message]
|