ok i was working on this code that searches all the .mp3 files in my directory and place them into a layout area. so it worked. but then when it listed it it listed the file names with a + between each space as the variable and its really listed under % in each space. this is what i dont want . http://rock.citycastmusic.net
heres the code
<?php
$directory = 'music';
chdir($directory);
$files = glob('*.mp3');
//$baseurl = "http://rock.citycastmusic.net/music/";
$baseurl = $_SERVER['SCRIPT_URI'].$directory.'/';
foreach ($files as $filename) {
$song = str_replace('.mp3', '', $filename);
?>
<p><b><a href="<?=$baseurl.urlencode($filename)?>"><?=$song?></a></b><br>
<?=$baseurl.urlencode($filename)?></p>
<? } ?>
p.s um i like dont check stuff time to time so if you can contact me on AIM: djifayth or MSN: superlazyboi@hotmail.com or Email: p.k.ipod@gmail.com thanks ill try to check this.