tufahija Posted October 11, 2009 Share Posted October 11, 2009 Hello guys, I am new to PHP, so I decided to post my question here. What I need to do is create a small PHP script that will choose four different pictures from my folder and display it on the XHTML page. Thank you in advance for your help. Quote Link to comment https://forums.phpfreaks.com/topic/177309-random-images-selector/ Share on other sites More sharing options...
.josh Posted October 11, 2009 Share Posted October 11, 2009 use glob to retrieve pics. shuffle to randomize. echo to display them. Or you could like, google for it... there are literally a million "random image" scripts/tutorials out there. Quote Link to comment https://forums.phpfreaks.com/topic/177309-random-images-selector/#findComment-934917 Share on other sites More sharing options...
tufahija Posted October 11, 2009 Author Share Posted October 11, 2009 Well, the only problem is I am a newbie so all those ready made codes are for one image only, and I do not know how to remake them to choose four different images... Quote Link to comment https://forums.phpfreaks.com/topic/177309-random-images-selector/#findComment-935131 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.