Jump to content


Randomly Generate Images From A Folder


2 replies to this topic

#1 _*Zenom_*

  • Guests

Posted 31 August 2006 - 12:03 AM

I remember someone doing this, its just I forgot how it was actually done.

What im looking for:
A little php script / code that will randomly pick 3 images or more from a folder, and display it onto the page. Like it reads the folder, sees what files are in it, then picks 3 files randomly and displays it on the page. I wanted this so I can put like hundreds of avatars and have them auto generate. And whenever I wanted to add more avatars, all I have to do is add more pictures to the folder.

#2 Dezept1p

    Young Padawan

  • Members
  • Pip
  • 85 posts
  • Gender:Male
  • Location:www.prohoney.com
  • Interests:I like web-design, Rap and break dance<br />www.prohoney.com my web design studio.<br />Will be :)

Posted 31 August 2006 - 01:52 AM

m... http://www.n1studios...?1=viewtut&2=15 link
how to create random avatar :D
be happy

Edited by Dezept1p, 31 August 2006 - 01:52 AM.


#3 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 31 August 2006 - 11:42 AM

http://www.pixel2life.com/forums/index.php...st&p=117513
http://www.pixel2life.com/advsearch/10/ran.../false/false/1/

This is a frequently asked question, please use the forum and tutorial searches.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users