Sorry I am really a newbie to html and PHP and others included in web coding. I have a piece of code that should be showing all pictures in the folder, instead i just get it opened like a text file in a web-browser. Is there a need to put a special html or anything else because i really would like this to work... Thank you. And by the way here is the code if there is any special needs:
<?
$files = glob("images/*.*");
for ($i=1; $i<count($files); $i++)
{
$num = $files[$i];
print $num."<br>";
echo '<img src="'.$num.'" alt="random image" />'."<br><br>";
}
?>
Also yes the .php file is named: "index.php". Inside the images folder I got a few of them but that does not matter for this question.