reptkeu
-
Posts
6 -
Joined
-
Last visited
Never
Posts posted by reptkeu
-
-
Just one ;ast question: how do you include subfolders?
-
This should do exactly as you seek..
I was sitting bored one night and I had a spare domain that was sitting doing nothing.. So I decided to put a random image gen on it. Nothing special about this script.
http://www.uglygoods.com if you want to see it working, just refresh the page. a couple times..
Hi Monkeytooth. It works great!
I couldn't even get the one I mentionned at first to work. And I think even if I did, it would have been a nightmare (I want to display dozens of pictures and with this first code I would have had to copy/paste/modify the three lines everytime I want an iamge to display.
With yours, it's much easier and quicker (just copy/paste......)
Thanks a lot for your help.
-
Why isn't it working?
-
I replaced
$random1 = RandomFile("random"); while (!$random2 || $random2 == $random1) { $random2 = RandomFile("random"); }
with
$random1 = RandomFile("http://bertrandclerc.com/autres/random_images/random/"); while (!$random2 || $random2 == $random1) { $random2 = RandomFile("random"); }
But it doesn't work. Any idea?
-
Hello,
I wanted to have a page on my website that displays lots of images randomly from a folder.
I found this article and this this code which exactly does what I am looking for.
Problem is: the image folder has to be called "random" and has to be located at in the ROOT directory. (Oh, and one more problem: I am a total newbie in coding, just some html basic knowledge.)
I keep trying to modify the script to point toward the right location but it just won't work.
Can you guys help?
Load multiple images randomly from a directory
in PHP Coding Help
Posted
Guys, here is the result: a "mood-board" generator.
I think it looks cool. What do you think?
Monkeytooth, if you want me to write credits let me know ;-)