Auto Display Images from the directory :P

Started on the old forum in February 2011 · view the original in the archive · old links redirect here

1 reply · 762 views · started 15 years ago · 1 min read

2 participants
tkreturns Developer · 98 posts #1
<?php
	$handle = opendir ('./');
    while (false !== ($file = readdir($handle))) {
        echo '<center><img src="'.$file.'"/><br />'.$file.'<br/></center>';
    }
?>

Reallly Reaallly Bored!! Hope this is usefull. It displays Images Automatically which exist in the current Directory! Easy to Use! Working Fine! Cheers 😉

ASK FOR HELP

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close