Jump to content

Get image from a folder


bemax

Recommended Posts

Is someone who can help me; I'm trying to get an image from a folder and show it:

Here is my code, logos is the directory; the problem is that I'm getting only the name of the image!

$handle=opendir('../logos/');

while (false!==($file = readdir($handle)))

{

if ($file != "." && $file != "..")

{

echo "".$file."\n";

}

}

closedir($handle);

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/159120-get-image-from-a-folder/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.