I have written a script to process picture files. The picture files are named by number so I can keep track of the order. In one section of the program, the script interacts with a user to rearrange the order of the pictures showing up when the script loops back using a href call.
My problem is the pictures got renamed o.k., but seems like the order has been taken and stored in the RAM or Buffer area and still keeping the old order when the loop back and display the pictures. They are still in the old order.
Is there a way to clear the stored data in the script and let the script to read the current data from the directory on each loop back?