Refresh .txt document every 10sec
document.getElementById('log').value = "<?php include('logs/testFile.txt'); ?>";
PHP code inserts the text which was in your log when page was asked from server.
After browser receives it, it only replaces contents with the same text which was statically implanted in the page by php script, may be, minutes, hours or years ago.
It resembles the person who reads again and again some old letter received from the fried long ago - one could not get new information from this old letter.
Last edited by RodionGork; 03-06-2012 at 08:07 AM.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread