yo tengo el mismo problema... lo curioso que tengo dos casos...
1. www.theoneprogrammer.com
Funciona correctamente... No hay ningun problema..
2. www.universalcable.com.sv
no me trabaja...
--------------------------------------------------------------------------- ------
El problema es el siguiente...
Trato de colocar una cookie..
http://www.universalcable.com.sv/prueba.php
<?php
$Username = "test";
setcookie('Cookie', $Username);
?>
error: Warning: Cannot modify header information - headers already sent by (output started at /home/univers4/public_html/prueba.php:6)
in /home/univers4/public_html/prueba.php on line 104
Ya trate de varias forma, he leido en todas partes y tratado con la mayoria y nada..
mi codigo completo es:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/universal.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Universal Cable S.A. de C.V.</title>
<!-- InstanceEndEditable -->
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
<!-- InstanceParam name="contenido" type="boolean" value="true" -->
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<style type="text/css">
<!--
body,td,th {
color: #FFF;
font-family: tahoma;
font-size: 12px;
}
body {
background-color: #02136c;
}
.font {
font-size: 11px;
color:#FFF;
}
img{
border:none;
}
a:link {text-decoration: none}
a:visited {text-decoration: none}
a:hover {text-decoration: none}
a {text-decoration: none}
-->
</style>
<?php
include ('_vti_txt/9head.txt');
?>
</head>
<body>
<table width="980" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="980" height="300"><table width="980" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="179" background="sis/pictures/derecha.png"><table width="179" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="179" height="124"><div align="center">
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="110" height="95">
<param name="movie" value="sis/animaciones/logo.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="swfversion" value="9.0.45.0" />
<!-- Esta etiqueta param indica a los usuarios de Flash Player 6.0 r65 o posterior que descarguen la versión más reciente de Flash Player. Elimínela si no desea que los usuarios vean el mensaje. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- La siguiente etiqueta object es para navegadores distintos de IE. Ocúltela a IE mediante IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="sis/animaciones/logo.swf" width="110" height="95">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="swfversion" value="9.0.45.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- El navegador muestra el siguiente contenido alternativo para usuarios con Flash Player 6.0 o versiones anteriores. -->
<div>
<h4>El contenido de esta página requiere una versión más reciente de Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Obtener Adobe Flash Player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div></td>
</tr>
<tr>
<td height="415"> </td>
</tr>
</table></td>
<td width="631" background="sis/pictures/lih.png"><table width="631" height="481" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="50" ><table width="631" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="572"><p><?php
include ('_vti_txt/9ini.txt');
?></p></td>
</tr>
</table>
<table width="630" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="59"><a href="index.php"><img src="sis/pictures/barhome.png" alt="" width="59" height="46" /></a></td>
<td width="125" background="sis/pictures/barc.png"><a href="canales.php"><img src="sis/pictures/botoncanales.png" width="125" height="46" /></a></td>
<td width="125" background="sis/pictures/barc.png"><a href="cobertura.php"><img src="sis/pictures/botoncobertura.png" width="125" height="46" /></a></td>
<td width="125" background="sis/pictures/barc.png"><a href="promociones.php"><img src="sis/pictures/botoncpromocion.png" width="125" height="46" /></a></td>
<td width="125" background="sis/pictures/barc.png"><a href="contacto.php"><img src="sis/pictures/botoncontacto.png" width="125" height="46" /></a></td>
<td width="60" background="sis/pictures/barc.png"><a href="email/"><img src="sis/pictures/botonemail.png" width="60" height="46" /></a></td>
<td width="12" height="42" ><img src="sis/pictures/barfin.png" width="12" height="46" /></td>
</tr>
</table><br /></td>
</tr>
<tr>
<td width="600" height="421" background="sis/pictures/contenido.png"><table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="600" height="44"><!-- InstanceBeginEditable name="EditRegion1" -->
<?php
$Username = "test";
setcookie('Cookie', $Username); //linea 104.
?>
<!-- InstanceEndEditable --></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="179" background="sis/pictures/izquierda.png"><table width="179" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="179" height="124"><div align="center"> <img src="sis/imagenes/logotipocanal29sinfondo.png" width="95" height="100" /></div></td>
</tr>
<tr>
<td height="415"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="89" bgcolor="#000e25"><table width="631" height="88" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="333" height="88" background="sis/pictures/panel1.png"><table width="314" height="59" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="173" height="59" class="font">Mantengase informado de las promociones de Universal Cable solo tienes que subcribirte!!!<br><br></td>
<td width="141"><form id="subcri" name="subcri" method="post" action="registro.php">
<label>
<input name="emailsub" type="text" id="mailtop" onclick="document.forms.subcri.mailtop.value='', document.forms.subcri.submit.disabled=false" maxlength="100" style="font-size:11px" value="Su Email..." />
</label>
<label>
<input type="submit" name="submit" id="submit" value="Suscripcion" style="font-size:10px" disabled=true />
</form></td>
</tr>
</table></td>
<td background="sis/pictures/panel2.png" width="298"><?php
include ('_vti_txt/9encuesta.txt');
?></td>
</tr>
</table>
<table width="631" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="78"><div align="center"><a href="visionafondo/"><img src="sis/imagenes/visonafondo.png" width="300" height="60" /></a></div></td>
<td><div align="center"></div></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p></td>
</tr>
</table>
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
//-->
</script>
</body>
<!-- InstanceEnd --></html>
--------------------------------------------------------------------------
Ayuda!!!!