Hi,
The problem in your code resides in the line 21 when you calls the echo function to create the image with the link to the file:
echo "<p align=center><a href=$actuURL/$file><img border=0 onmouseover=roll_over('but1', '$bleb/dl_up.jpg') onmouseout=roll_over('but1', '$bleb/dl_dwn.jpg') src=$bleb/dl_dwn.jpg width=117 height=48 name=but1></a></p>";
When dealing with urls we have to take an extra step to convert the string of the location to fit the standard needs. Just calling the
rawurlencode() function should solve your problem.
echo "<p align=center><a href=$actuURL/".rawurlencode($file)."><img border=0 onmouseover=roll_over('but1', '$bleb/dl_up.jpg') onmouseout=roll_over('but1', '$bleb/dl_dwn.jpg') src=$bleb/dl_dwn.jpg width=117 height=48 name=but1></a></p>";
I hope this information helps you,
codetaino
PD: sorry for my english... spanish is my primary language.