Hi again. This is the part of the code that doesn't work.
$fileBaseName=basename($file,'.jpg');
echo("<img src='{$handle}/{$file}' alt=$fileBaseName />");
So what i want to do is at alt to show only the name without the.jpg and i dont know why if i have two or three words is stops at the first word, meaning that it stops at the firt " ". So how can i fix this? Tried with explode too, i don't think the basename is to blame for this, but i dont know what to say...