Hi
I made a website that takes a value from the user and saves it to a text file. On my home PCs, it works great, and the data.txt file gets updated instantly.
However, my friend says it is not getting instantly updated on his home PCs [he is using a Wi-Max connection]. It takes 1 minute to get updated for him.
Is this problem a result of this code that I am using?
<?php
$command = $_POST['command'];
$ourFileName = "data.txt";
unlink($ourFileName);
$fileHandle = fopen($ourFileName, 'w') or die("can't open file");
$stringData = $command;
fwrite($fileHandle, $stringData);
fclose($fileHandle);
header ("Location: index.html");
?>
How is it possible to fix this problem?
I'm sorry if this question is not supposed to be posted on stackOverflow, I just did not know where else to post it.