Si alguien me puede decir porque a veces funciona y a veces no me hace un favor, lo pueden ver funcionando en
www.gamesario.com.
No entiendo que pasa, por ahi carga y por ahi tira error.
Saludos.
Código PHP:
<?php
$archivo='novedades.txt';
$ficherobase = file("$archivo");
$largo = sizeof($ficherobase);
$largo = $largo - 1;
for($i=$largo ; $i>-1 ; $i--) {
$dat = explode("|", $ficherobase[$i]);
echo "<head>
<title>Untitled Document</title>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
<style type='text/css'>
<!--
body,td,th {
font-size: 10px;
color: #333333;
}
body {
background-color: #CCCCCC;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
scrollbar-face-color:#C0C0C0;
scrollbar-highlight-color:#000000;
scrollbar-3dlight-color:#FFFFFF;
scrollbar-darkshadow-color:#FFFFFF;
scrollbar-shadow-color:#000000;
scrollbar-arrow-color:#FFFFFF;
scrollbar-track-color:#CCCCCC;
}
a {
font-size: 10px;
color: #000000;
}
a:link {
text-decoration: none;
color: #000000;
background-color: #DDDDDD;
}
a:visited {
text-decoration: none;
color: #000000;
background-color: #DDDDDD;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
color: #000000;
background-color: #DDDDDD;
}
.style2 {color: #666666}
.style3 {color: #6699FF}
-->
.style11 {
font-size: 10px;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #000000;
}
.style3 {font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #666666; }
.style16 {font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; }
.style17 {font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #999999; }
.style18 {font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; }
.style19 {font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; }
</style>
<link href='gamesario.css' rel='stylesheet' type='text/css'>
<style type='text/css'>
<!--
.style4 {color: #000000}
.style5 {color: #999999}
.style6 {font-size: 10px}
.style7 {font-size: 10px}
-->
</style>
</head>
<body>
<table width='100%' border='0' cellpadding='0' cellspacing='0' bgcolor='#DDDDDD'>
<tr>
<td valign='top' bordercolor='#000000' bgcolor='#CCCCCC'>
<div align='center' class='news'>
<table width='100%' border='0' cellpadding='2' cellspacing='0' bordercolor='#000000' bgcolor='#CCCCCC'>
<tr>
<td bordercolor='#EEEEEE' bgcolor='#CCCCCC'><span class='style17'>$dat[1]</span><span class='style19'> | </span><span class='style11'>$dat[0]</span></td>
</tr>
<tr>
<td valign='top' bordercolor='#CCCCCC' bgcolor='#CCCCCC'><table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td><span class='style18'>$dat[2]</span></td>
</tr>
<tr>
<td><div align='right'><span class='style16'>Noticia enviada por $dat[3]</span> </div></td>
</tr>
<tr>
<td height='0'><div align='center'>
<p class='style1'>···</p>
</div></td>
</tr>
</table></td>
</tr>
</table>
</body>
";
}?>
Esto está adentro de un IFRAME comun y corriente.