Hi there and thanks for reading.
I have the following problem/question:
I have a photo web site with different galleries. I wish to be able to re-sort the appearance of the photos so everything looks different and more dynamic , say on a daily or even weekly basis.
I have written a routine in VBA which basically takes the images... puts them in a temp folder, writes to an array, sorts the array using a random sqequence and then rewites the files back to the original folder. Hope you understand? So 1.jpg may now become 6.jpg etc (also 1thumbnail.jpg will also become 6thumbnail.jpg, and the same with 1.txt -> 6.txt) It is important that that what was previously 1.jpg remains linked with 1thumbnail and 1.txt! I'm sure you understand.
I then upload the images/texts again to the server.
I would now like to try this in php, but am relatively new to this, my only experience has been taking wordpress themes apart
If someone could point me in the right direction with arrays, shuffle etc in particular applying the same shulffle to the other folders i.e. thumbnails and texts i would be grateful.
Thanking you in advance and best wishes
Neil