Jump to content

[SOLVED] Ajax problem


scuff

Recommended Posts

so I have this code that uses ajax to update every second and because internet caches I need to use urls with random queries on the end like this

       var randomnumber = Math.floor(Math.random()*1000001)
        var file = 'serverTime.php?dummy='+randomnumber; 
        ajaxRequest.open("GET", file, true);
ajaxRequest.send(null);

but the problem is, is that it creates a lot of files in the temporary internet files folder, so if they are on the page for along time it makes a lot of files and takes up room on their hard drive. Is there any way to do this without creating thousands of temporary files?

Link to comment
https://forums.phpfreaks.com/topic/148407-solved-ajax-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.