Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Could just make a script that loads the pic paths into an array and
returns one randomly. To make it so it'd work even from plain HTML pages
you could have it return the mime type and send the pic contents
directly. So you could have a page that has <IMG SRC="imgview.php"> and
imgview.php would write the mime type header and send the pic contents. If
you have a lot of pics (like I do) then you might want to push all the
paths into a db and access then from there rather than messing with
sorting out junk files, unreadable files, etc each use..
*^*^*^*
Michael McGlothlin <EMAIL:PROTECTED>
http://www.nomadphones.org
On Tue, 2 Oct 2001, Neil Bradshaw wrote:
> Hey everyone,
>
> I have PHP and Perl at my disposal. I also have a bunch of pictures. What
> I want to do is make it so that in any given page, a random picture
> selected from a bunch of pictures in a directory within public_html will
> come up.
>
> Any ideas as to how I should do this? Thanks.
>
> Regards,
> Neil
>
> --
> To unsubscribe, go to http://mlug.missouri.edu/members/edit.php
>
> Archives are available at http://mlug.missouri.edu/list-archives/
>
--
To unsubscribe, go to http://mlug.missouri.edu/members/edit.php
Archives are available at http://mlug.missouri.edu/list-archives/