everyone i have php simple some code :
project
|- index.php
|- banana.jpg
file: index.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<img src="banana.jpg" alt="">
</body>
</html>
So, i open command prompt in project folder and run $ php -S localhost:8000 index.php then open browser
but not show my image :(
Please help and tell me about solution way...
Thank you so much
It must be a bug in the php web server, I did tests with version 8.0.9 and the same thing happens to me, it does not recognize the type.

With php -S localhost: 8000 it works correctly, by default php executes the index.php file
php -S localhost: 8000
If the file is in "public/index.php" you could run:
php -S localhost: 8000 -t public
You can find more information at :https://www.php.net/manual/en/features.commandline.webserver.php