79646026

Date: 2025-05-30 19:56:33
Score: 1
Natty:
Report link
$databaseFilename = "abcd.jpg"; // value from your database

$partnameoffile = pathinfo($databaseFilename, PATHINFO_FILENAME); // "abcd"

$dirname = "media/images/"; $images = glob($dirname . "" . $partnameoffile . ".*"); // match any extension

foreach ($images as $image) { echo '
'; }

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: wessam khraisat