PHP-Newbie: Iframe refreshen!!!

Beitrag lesen

Das hier ist meine

WERBEVIEW.PHP

<?
include("config.php");
if ($leba > 11):
$leba = "0";endif;
$leba = $leba+1;

$fileMessage = "<?\n";
$fileMessage .= "$leba = "$leba";\n";
$fileMessage .= "$pwd = "$pwd";\n";
$fileMessage .= "$rel = "$rel";\n";
$fileMessage .= "$version  = "$version";\n";
$fileMessage .= "?>";
                                $cartFile = fopen("config.php","w+");
                                fputs($cartFile,$fileMessage);
                                fclose($cartFile);
include("$leba.php");
$zahl=$leba;
if ($zeitan=="ON"):
$zeitv=mktime(0,0,0,$zeitvonm,$zeitvont,$zeitvonj);
$zeitb=mktime(23,59,59,$zeitbism,$zeitbist,$zeitbisj);
$zeith=time();
if ($zeith >= $zeitv && $zeith <= $zeitb)
 $aktiv = "ja";
 else
 $aktiv = "nein";

$fileMessage = "<?\n";
$fileMessage .= "$link = "$link";\n";
$fileMessage .= "$email = "$email";\n";
$fileMessage .= "$adview = "$adview";\n";
$fileMessage .= "$bild = "$bild";\n";
$fileMessage .= "$aktiv  = "$aktiv";\n";
$fileMessage .= "$ex  = "$ex";\n";
$fileMessage .= "$adclick  = "$adclick";\n";
$fileMessage .= "$vonadview  = "$vonadview";\n";
$fileMessage .= "$vonadclick  = "$vonadclick";\n";
$fileMessage .= "$alttag  = "$alttag";\n";
$fileMessage .= "$zeitan  = "$zeitan";\n";
$fileMessage .= "$zeitvont  = "$zeitvont";\n";
$fileMessage .= "$zeitvonj  = "$zeitvonj";\n";
$fileMessage .= "$zeitvonm  = "$zeitvonm";\n";
$fileMessage .= "$zeitbist  = "$zeitbist";\n";
$fileMessage .= "$zeitbism  = "$zeitbism";\n";
$fileMessage .= "$zeitbisj  = "$zeitbisj";\n";
$fileMessage .= "$pop  = "$pop";\n";
$fileMessage .= "$anz  = "$anz";\n";
$fileMessage .= "?>";
                                $cartFile = fopen("$zahl.php","w+");
                                fputs($cartFile,$fileMessage);
                                fclose($cartFile);

endif;

if ($aktiv == "ja"):

$adview=$adview+1;
if ($anz=="ja"):
echo"<embed src='$bild' loop='true' quality='high' scale='exactfit' wmode='opaque'
bgcolor='#FFFFFF' WIDTH='468' HEIGHT='60' TYPE='application/x-shockwave-flash'
PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>";
$ex="soso";
endif;
if ($ex == "ja"):
echo"<p align='center'><a href='$link' target='_blank'><img
src='$bild' alt='$alttag' border='0'></a></p>
";endif;
if ($ex == "nein"):
echo"<p align='center'><a href='werbung.php?x=5&zahl=$zahl' target='_blank'><img
src='$bild' alt='$alttag' border='0'></a></p>
";endif;

if ($vonadview == ""):
$vonadview="100000000000";
endif;
if ($vonadview == "0"):
$vonadview="100000000000";
endif;
if ($adview == $vonadview):
$aktiv="nein";
endif;
if ($adview > $vonadview):
$aktiv="nein";
endif;
if ($vonadclick == ""):
$vonadclick="100000000000";
endif;
if ($vonadclick == "0"):
$vonadclick="100000000000";
endif;
if ($adclick == $vonadclick):
$aktiv="nein";
endif;
if ($adclick > $vonadclick):
$aktiv="nein";
endif;

$fileMessage = "<?\n";
$fileMessage .= "$link = "$link";\n";
$fileMessage .= "$email = "$email";\n";
$fileMessage .= "$adview = "$adview";\n";
$fileMessage .= "$bild = "$bild";\n";
$fileMessage .= "$aktiv  = "$aktiv";\n";
$fileMessage .= "$ex  = "$ex";\n";
$fileMessage .= "$adclick  = "$adclick";\n";
$fileMessage .= "$vonadview  = "$vonadview";\n";
$fileMessage .= "$vonadclick  = "$vonadclick";\n";
$fileMessage .= "$alttag  = "$alttag";\n";
$fileMessage .= "$zeitan  = "$zeitan";\n";
$fileMessage .= "$zeitvont  = "$zeitvont";\n";
$fileMessage .= "$zeitvonj  = "$zeitvonj";\n";
$fileMessage .= "$zeitvonm  = "$zeitvonm";\n";
$fileMessage .= "$zeitbist  = "$zeitbist";\n";
$fileMessage .= "$zeitbism  = "$zeitbism";\n";
$fileMessage .= "$zeitbisj  = "$zeitbisj";\n";
$fileMessage .= "$pop  = "$pop";\n";
$fileMessage .= "$anz  = "$anz";\n";
$fileMessage .= "?>";
                                $cartFile = fopen("$zahl.php","w+");
                                fputs($cartFile,$fileMessage);
                                fclose($cartFile);
                                $aktiv="";
endif;
if ($aktiv == "nein"):
include("werbeview.php");

endif;
?>

WO BINDE ICH NUN DEN BEFEHL EIN???