Is there any way of refreshing an iframe every time the src file changes? I am thinking about something like this:

```
while(1){
   $f1=readfile('file');
   sleep(0.2);
   $f2=readfile('file');
   if ($f1!=$f2){
       //(Reload iframe)
   }
}

```