Hi Conor
I agree, it isn't a good fix, however I was getting very strange behaviour - I went through these steps:
Banner Swapper Installed - Works fine
URI Rewrite Install but disabled it (from admin config) - Banner Swapper Worked
URI Rewrite Enabled and configured correctly - Banner Swapper hangs when loading images.
I've narrowed down the problem using Firebug, and this is the bizarre behaviour:
The php script that generates the text/xml originally was running fine, generating output with no errors, however as soon as I switched on the URI rewrites, the php script still ran, however it's header status code was modified to 404. Firebug was still showing the content was being sent, however IE/FF couldn't load the XML at all.
Disabling that line in your code stopped the headers being modified to 404, causing the banner swapper script to work again.
I've added a rewritecond to my .htaccess as follows:
RewriteCond %{REQUEST_URI} !/AJAX_servers/AJAX_banner_swapper_server.php [NC]
Hopefully I've not done something wrong there but please correct me if I have.
When I get a bit more time towards the end of the week I will look into this in more detail, and perhaps find a better solution...
Chris
Bookmarks