Diese Php file soll denn inhalt mehrere Verzeichnisse in eine Menu umwandeln (ist relativ styllos geschrieben ich mach das noch besser) wenn ich jetzt einen neue Datei in ein verzeichniss geschrieben habe und den Browser refresh oder das Frameset oder die menu.php neu lade. Passiert garnichts nur wenn ich den Cache lösche ist die neue Datei eingebunden.
Ihm mozilla auf linux und im mozilla auf windows sowie im IE tritt dieses Prob auf wie kann ich die Datei vernünftig refreseh.
Anhang: Das ist der Code:
<?
if (strstr($_SERVER["HTTP_USER_AGENT"], "MSIE")) {$browser=" "; }
else{$browser="";}
?>
<html>
<head>
<title>Menu</title>
<link rel="stylesheet" href="menu.css">
<meta http-equiv="cache-control" content="no-cache">
</head>
<body bgcolor="black">
<style>
<!--
#foldheader{cursor:pointer;cursor:hand ; font-weight:bold ;
#foldinglist{list-style-image:url(list.gif)}
//-->
</style>
<script language="JavaScript1.2">
<!--
var head="display:''"
img1=new Image()
img1.src="fold.gif"
img2=new Image()
img2.src="open.gif"
var ns6=document.getElementById&&!document.all
var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
function checkcontained(e){
var iscontained=0
cur=ns6? e.target : event.srcElement
i=0
if (cur.id=="foldheader")
iscontained=1
else
while (ns6&&cur.parentNode||(ie4&&cur.parentElement)){
if (cur.id=="foldheader"||cur.id=="foldinglist"){
iscontained=(cur.id=="foldheader")? 1 : 0
break
}
cur=ns6? cur.parentNode : cur.parentElement
}
if (iscontained){
var foldercontent=ns6? cur.nextSibling.nextSibling : cur.all.tags("UL")[0]
if (foldercontent.style.display=="none"){
foldercontent.style.display=""
cur.style.listStyleImage="url(open.gif)"
}
else{
foldercontent.style.display="none"
cur.style.listStyleImage="url(fold.gif)"
}
}
}
if (ie4||ns6)
document.onclick=checkcontained
//-->
</script>
<table width="100%" height="100%" border="0">
<tr>
<td align="left" valign="middle">
<li id="foldheader" style="list-style-type:none; list-style-image:url(fold.gif);">Aktuell</li>
<ul id="foldinglist" style="display:none" style=&{head};>
<?
$il ="aktuell";
$verz = dir("/home/smash/public_html/entry/$il/");
while($entry=$verz->read()){
$datum = date ("d-m-Y", filemtime("/home/smash/public_html/entry/$il/$entry"));
$entry = ereg_replace(".htm","",$entry);
$line = "<li style="list-style-type:none"><a href="http://mindcraft.homeunix.org/~smash/entry/$il/$entry.htm" target="main">$entry</a><p>$datum</p></li>\n<table width="50%" align="right" class="line"><tr><td bgcolor="FF0000" class="line">$browser</td></tr></table><br>";
if($entry == "." || $entry == "..") {$line = "";}
echo "$line";
}
?>
</ul>
<li id="foldheader" style="list-style-type:none; list-style-image:url(fold.gif);">Liberia?</li>
<ul id="foldinglist" style="display:none" style=&{head};>
<?
$il ="liberia";
$verz = dir("/home/smash/public_html/entry/$il/");
while($entry=$verz->read()){
$datum = date ("d-m-Y", filemtime("/home/smash/public_html/entry/$il/$entry"));
$entry = ereg_replace(".htm","",$entry);
$line = "<li style="list-style-type:none"><a href="http://mindcraft.homeunix.org/~smash/entry/$il/$entry.htm" target="main">$entry</a><br><p>$datum</p></li>\n<table width="50%" align="right" class="line"><tr><td bgcolor="#FF0000" class="line">$browser</td></tr></table><br>";
if($entry == "." || $entry == "..") {$line = "";}
echo "$line";}
?>
</ul>
<li id="foldheader" style="list-style-image:url(fold.gif); list-style-position:inside; list-style-type:none">Ziele / Projekte</li>
<ul id="foldinglist" style="display:none" style=&{head};>
<?
$il ="ziele";
$verz = dir("/home/smash/public_html/entry/$il/");
while($entry=$verz->read()){
$datum = date ("d-m-Y", filemtime("/home/smash/public_html/entry/$il/$entry"));
$entry = ereg_replace(".htm","",$entry);
$line = "<li style="list-style-type:none"><a href="http://mindcraft.homeunix.org/~smash/entry/$il/$entry.htm" target="main">$entry</a><br><p>$datum</p></li>\n<table width="50%" align="right" class="line"><tr><td bgcolor="#FF0000" class="line">$browser</td></tr></table><br>";
if($entry == "." || $entry == "..") {$line = "";}
echo "$line";}
?>
</ul>
<li id="foldheader" style="list-style-image:url(fold.gif); list-style-position:inside; list-style-type:none">Unsere Erfolge</li>
<ul id="foldinglist" style="display:none" style=&{head};>
<?
$il ="erfolge";
$verz = dir("/home/smash/public_html/entry/$il/");
while($entry=$verz->read()){
$datum = date ("d-m-Y", filemtime("/home/smash/public_html/entry/$il/$entry"));
$entry = ereg_replace(".htm","",$entry);
$line = "<li style="list-style-type:none"><a href="http://mindcraft.homeunix.org/~smash/entry/$il/$entry.htm" target="main">$entry</a><br><p>$datum</p></li>\n<table width="50%" align="right" class="line"><tr><td bgcolor="#FF0000" class="line">$browser</td></tr></table><br>";
if($entry == "." || $entry == "..") {$line = "";}
echo "$line";}
?>
</ul>
<li id="foldheader" style="list-style-image:url(fold.gif); list-style-position:inside; list-style-type:none">Wie sie helfen können</li>
<ul id="foldinglist" style="display:none" style=&{head};>
<?
$il ="helfen";
$verz = dir("/home/smash/public_html/entry/$il/");
while($entry=$verz->read()){
$datum = date ("d-m-Y", filemtime("/home/smash/public_html/entry/$il/$entry"));
$entry = ereg_replace(".htm","",$entry);
$line = "<li style="list-style-type:none"><a href="http://mindcraft.homeunix.org/~smash/entry/$il/$entry.htm" target="main">$entry</a><br><p>$datum</p></li>\n<table width="50%" align="right" class="line"><tr><td bgcolor="#FF0000" class="line">$browser</td></tr></table><br>";
if($entry == "." || $entry == "..") {$line = "";}
echo "$line";}
?>
</ul>
</td>
</tr>
</table>
</body>
</html>