<?php
$imageDir = "";
$images = glob($imageDir . '*.jpg');
foreach ($images as $image) {
?> 
<div class="col-lg-3 col-md-4 col-xs-6">
    <?php
    $name = chop($image, '.jpg');
    $filename = $image;
    if (file_exists($filename)) {
        $taken = "Screenshot Taken: " . date("F d Y H:i:s", filemtime($filename));
    }
    ?>
    <a data-gallery="example-gallery" style="text-decoration:none" href="<?php echo $image; ?>" class="d-block mb-4 h-100" data-toggle="lightbox" data-title="Player Name: <?php echo $name; ?>" data-footer="<?php echo $taken; ?>" data-max-width="800" >                            
        <img class="img-fluid img-thumbnail" src="<?php echo $image; ?>" alt="">
        <p><?php echo $name; ?></p>
    </a>
</div><?php}?>
Hi . i created a image gallery with php . using glob function. but some images wont display , because those images starts with a #(hash) . EX: www.mysite.com/ss/#insta.jpg iam using tags . is there any other way to view images like this in a
< img> tag
