When using:
file('http://example.com/test.txt');
after changing test.txt, i get the chached version for like 5 mins or so. Anyway to disable this caching so that every load it is fresh from the server?
I am attempting to make a way to check for updates of my script.. Here is my code..
$configLines = file($url);
foreach ($configLines as $av)
{
list ($a, $v) = explode("=", $av);
$$a = $v;
}
You could try to append some dummy parameter to the URL. This might trick the server into thinking that you are actually requesting a different file –