PHP Image Display

They have: 10 posts

Joined: Feb 2004

hey ppl,

i have a directory on my site where visitors can upload there own pictures, and im wanting a script that displays all the contents of that folder and even display a small thumbnail of that image.

druagord's picture

He has: 335 posts

Joined: May 2003

An easy way is to provide access to foldername/ in you're web server. under apache you can also custumize the way the directory listing apear.

in php goto http://www.php.net/manual/en/ref.filesystem.php and read about those function you will find what you need there if you get stuck just drop a line here.

IF , ELSE , WHILE isn't that what life is all about

Greg K's picture

He has: 2,145 posts

Joined: Nov 2003

do you have a URL for info on how to custimize the direcoty listings? I wrote a basic program to list filenames in a directory as the deafult for apache cut the filenames off.

-Greg

druagord's picture

He has: 335 posts

Joined: May 2003

It is the mod_autoindex that allow you to do that

http://httpd.apache.org/docs/mod/mod_autoindex.html

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.