Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Random Image

  1. #1
    New Coder
    Join Date
    Jun 2006
    Thanked 0 Times in 0 Posts

    Random Image

    I was wondering if anyone could assist me in locating a PHP script that displays a random PNG image from a set directory. The script must produce a PNG file, such as image.png, to link to as opposed to only an image.php (for use on forums where the PHP extension is prohibited for images).

    Thanks in advance!

  • #2
    Regular Coder dswimboy's Avatar
    Join Date
    Nov 2003
    mostly in Ann Arbor
    Thanked 0 Times in 0 Posts
    well i can't assist you in finding a script, but i have an idea for going about it. you could tell your server to parse *.png files as PHP files in one directory. then you could write/find a script that randomly opened a png file, and output the contents.
    "There is more than one way to do it."


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts