HTML Code:
function timer(){
		setTimeout("timer()", 10000);
		document.getElementById('log').value = "<?php include('logs/testFile.txt'); ?>";
	}
I have got timer() to run onLoad. The idea is to refresh the 'log' which is a textarea every 10 seconds. The data in the file is displayed in the textarea but if I make any changes to the testFile.txt it wont show in the textarea until i refresh the page, I want it to update on the page as it loops through the javascript function. What am I missing here?