When I make changes in my xml file on the server they won't change on my site. I'm on a Mac with the latest Snow Leopard OS. I use Transmit for my ftp browser. I tried editing the xml in Transmit but didn't stay. As soon as I refresh the browser it reverts back to the unchanged xml. I know nothing about php and was hoping someone can please look at my xml & php to see where the problem is.
Thank you
I really hate to ask this since you've went further than any other forum, knowing nothing about php, can you show me where exactly to to the code or even better put it in the php I sent? It's the gallery.xml file that I'm having problems with. I also didn't mention but could it be something in the config.xml?
If your PHP file is named "file.php" and it is delivering the XML to feed the gallery, with a querystring parameter that indicates the sort order - the URL should be something like:
file.php?sortorder=random
If you request the same file again, because the parameter is the same, the server or browser may cache the content - which is great for performance, but defeats the script. To compensate, you can either send a random string (the time works well), so that each request has a different URL -
file.php?sortorder=random&t=32423
Or you could use the cache control headers at the very top of the file:
I'll first give your 3 lines of code a chance, the rest I don't understand. At 62 I'm embracing all the new technology but understanding it is another thing. Thank You.
The site look really nice. Be sure to put some text in, for search engines.
I don't see anything wrong.
From the code, it looks like you want to present a random list of files for flash to play, is that right?
If so - if the rest of the page is working okay - I wouldn't worry about randomizing - just use what you have.
You might want to optimize some of the images, because the thumbnails seem to take a long time to load (and I have a fast connection). To optimize the images, check the tools you used to create them. Usually, under Save As, there is some sort of Optimize feature. It may also be Save for Web.