I have this script and when i try to run it, it just says waiting for localhost and never actually runs. If i go to my localhost i can run other files with no problem. 

What's wrong with this script?

```
<?php 
    $dir = 'Images/uploaded/';
    if($handle = opendir($dir)) {
        $file = readdir($handle);

        while($file !== false) {
            echo "<li><img class=\"thumb\" src=\"".$dir.$file."\" /></li>";
        }
    }

    closedir($handle);
?>

```