Hi guys.
I'm a very very noob at html and I have something like this:
<script type="text/javascript">
window.onload=function () {
var objDivlog = document.getElementById("txt");
objDivlog.scrollTop = objDivlog.scrollHeight;
}
</script>
</head>
<body>
<table height="100%" border="0">
<tr>
<td width="120px" align="left" valign="top">
<div class="list">
<?php
$files = array();
$dir = opendir('logs');
while(false != ($file = readdir($dir))) {
if(strpos($file, '.txt') !== FALSE) {
$files[] = $file;
}
}
natsort($files);
$files = array_reverse($files);
foreach($files as $file) {
echo '
<a href="#" onclick="$(\'#logfile\').load(\'logs/'.$file.'\');">'.$file.'</a><br>';
}
?>
I constantly change the txt files but once it's loaded, it won't change next time.
Is there a way to prevent txt files from getting cached?
Thanks!