Here\'s the code, if you can you may improve it but then I would like to know what you change and why <img src=\'http://www.killanet.net/forum3/public/s ... >/blum.gif\' class=\'bbc_emoticon\' alt=\':P\' /> so I learn something from it.
Code: Select all
<?php
if ($handle = opendir(\'Portfolio\')) {
while (false !== ($file = readdir($handle))) {
if ($file != \'.\' && $file != \'..\' && preg_match("/prev/",$file)) {
$open = str_replace("(prev)","",$file);
$show = str_replace(".jpg","",$open);
echo " <b> $show </b><br><a href=\"Portfolio/{$open}\" target=\"\_blank\"><img src=\"Portfolio/{$file}\" alt=\"\" border=\"0\" /></a><br><br>";
}
}
closedir($handle);
}
?>
