Buenas, todo esto<div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank" style="color: rgb(87, 151, 176); ">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt; <br>
&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml" target="_blank" style="color: rgb(87, 151, 176); ">http://www.w3.org/1999/xhtml</a>&quot;&gt; <br> <br>&lt;script LANGUAGE=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot;jquery/jquery-1.4.3.js&quot;&gt;&lt;/script&gt; <br>
&lt;script LANGUAGE=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot;galleria/src/galleria.js&quot;&gt;&lt;/script&gt;<br>&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;css/d.css&quot;&gt; <br>
&lt;head&gt; <br> <br>&lt;title&gt;Pellegrino Propiedades&lt;/title&gt; <br> <br>&lt;/head&gt; <br> <br>&lt;body&gt; <br><br><br></span>es una salida, deberia estar despues del header(). Antes del &quot;&lt;?php&quot; no puede haber ni un espacio ni un salto de linea, y dentro del codigo php no puede haber ni un print() ni un echo antes de el header(). Espero que te sirva, saludos</div>
<div><br></div><div><br></div><div><br><div class="gmail_quote">El 16 de noviembre de 2010 17:10, Bruno Meschini <span dir="ltr">&lt;<a href="mailto:brunomeschini@hotmail.com">brunomeschini@hotmail.com</a>&gt;</span> escribió:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



<div>
para mi no hay salida antes de mi header, <br>y lo que no llego a comprender es porque funciona el localhost y en el servidor dice <br>(<b>Warning</b>:  Cannot modify header information - headers already sent
 by (output started at 
/home/mardelp1/public_html/<a href="http://pellegrinoprop.com.ar/ampliarfull2.php:4" target="_blank">pellegrinoprop.com.ar/ampliarfull2.php:4</a>) in <b>/home/mardelp1/public_html/<a href="http://pellegrinoprop.com.ar/ampliarfull2.php" target="_blank">pellegrinoprop.com.ar/ampliarfull2.php</a></b>
 on line <b>84)<br><br><br><br><br><br><br><br><br></b><br>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;
<br>&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>&quot;&gt;
<br> <br>&lt;script LANGUAGE=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot;jquery/jquery-1.4.3.js&quot;&gt;&lt;/script&gt;
<br>&lt;script LANGUAGE=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot;galleria/src/galleria.js&quot;&gt;&lt;/script&gt;<br>&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;css/d.css&quot;&gt;
<br>&lt;head&gt;
<br> <br>&lt;title&gt;Pellegrino Propiedades&lt;/title&gt;
<br> <br>&lt;/head&gt;
<br> <br>&lt;body&gt;
<br><br><br>&lt;?php<br><br>//Obterner las variable<br><br>$variable1=($_GET[&#39;variable1&#39;]);<br>$variable2=($_GET[&#39;variable2&#39;]);<br>$variable3=($_GET[&#39;variable3&#39;]);<br>$variable4=($_GET[&#39;variable4&#39;]);<br>
$variable5=($_GET[&#39;variable5&#39;]);<br>$variable6=($_GET[&#39;variable6&#39;]);<br><br> <br>                        <br>include (&quot;conex.php&quot;);     <br>            <br>            <br>if (conectar()){<br>         <br>
         <br>         $registros = 1;<br>         $pagina = $_GET[&quot;pagina&quot;];<br>                        <br>     <br>                      <br>         if (!$pagina) {<br>                       $inicio = 0;<br>                       $pagina = 1;<br>
                       }<br>                       else {<br>                       $inicio = ($pagina - 1) * $registros;<br>                        }<br><br>             <br>         $resultados =mysql_query(&quot;SELECT *<br>
                          FROM (prop)<br>                           WHERE prop.id_categoria In (1,3)<br>                           AND prop.id_rubro =&#39;$variable5&#39;&quot;);<br>         <br>         <br>         $total_registros = mysql_num_rows($resultados);<br>
         <br>         $resultados = mysql_query(&quot;SELECT *<br>                        FROM (prop)<br>                           WHERE prop.id_categoria In (1,3)<br>                           AND prop.id_rubro =&#39;$variable5&#39; ORDER BY id DESC LIMIT $inicio, $registros&quot;);<br>
       <br>       $total_paginas = ceil($total_registros / $registros);<br>                                        <br>           <br>             while ($regfull=mysql_fetch_array($resultados)){<br>           <br>           $convert_dir=htmlentities($regfull[&quot;dir&quot;]);<br>
                    $convert_des=htmlentities($regfull[&quot;des&quot;]);<br>                <br>           $idpropiedad= $regfull[&quot;id&quot;];<br>           <br>            <br>           if ($variable6){<br>           if ($variable2 == $idpropiedad){<br>
 <br>           }<br>           else {<br>           <br><br>           <br>                                    header (&quot;Location: ampliarfull.php?&amp;variable6=$variable6&amp;variable5=$variable5&amp;variable2=$variable2&amp;idpropiedad=$idpropiedad&amp;pagina=&quot;.($pagina+1));<br>
             <br>              <br>             <br>             }   <br>             }   <br>                  ?&gt;<br><br><hr>From: <a href="mailto:brunomeschini@hotmail.com" target="_blank">brunomeschini@hotmail.com</a><br>
To: <a href="mailto:php-avanzado@pato2.fi.mdp.edu.ar" target="_blank">php-avanzado@pato2.fi.mdp.edu.ar</a><br>Date: Tue, 16 Nov 2010 19:51:37 +0000<br>Subject: Re: [Php-avanzado] paso de variables con location.href<br><br>







leo, aun no entiendo bien el concepto de tener salida o no, <br><br>en este caso si se eso se refiere a imprimir, no imprimo nada, y en mi local host uso un header y funciona perfecto pero al subirlo  a otro servidor salta el siguiente warning<br>
<br><br><b>Warning</b>:  Cannot modify header information - headers already sent
 by (output started at 
/home/mardelp1/public_html/<a href="http://pellegrinoprop.com.ar/ampliarfull2.php:4" target="_blank">pellegrinoprop.com.ar/ampliarfull2.php:4</a>) in <b>/home/mardelp1/public_html/<a href="http://pellegrinoprop.com.ar/ampliarfull2.php" target="_blank">pellegrinoprop.com.ar/ampliarfull2.php</a></b>
 on line <b>84<br><br><br><br></b><br>&gt; From: <a href="mailto:leonardot@pegasusnet.com.ar" target="_blank">leonardot@pegasusnet.com.ar</a><br>&gt; To: <a href="mailto:php-avanzado@pato2.fi.mdp.edu.ar" target="_blank">php-avanzado@pato2.fi.mdp.edu.ar</a><br>
&gt; Date: Tue, 16 Nov 2010 15:40:06 -0300<br>&gt; Subject: Re: [Php-avanzado] paso de variables con location.href<br>&gt; <br>&gt; <br>&gt; Hola Bruno,<br>&gt; <br>&gt;         si ya tenés salida, queda de veras feo que el navegador &quot;salte&quot; a otro<br>
&gt; URL, porque el usuario ya vio algo...<br>&gt; <br>&gt;         Lo que tendrías que hacer para que quede prolijo, es poner toda la<br>&gt; lógica que decide si se redirije o no al principio, y a lo sumo te<br>&gt; requerirá setear alguna bandera de &quot;pasó&quot; o &quot;no pasó&quot; para manejar la<br>
&gt; lógica más abajo...<br>&gt; <br>&gt; <br>&gt; El mar, 16-11-2010 a las 18:12 +0000, Bruno Meschini escribió:<br>&gt; &gt; hola leo, <br>&gt; &gt; <br>&gt; &gt; se pueden pasar mas de una variable en un javascript location.href <br>
&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; lo que quiero hacer es reemplazar un header location que no funciona<br>&gt; &gt; porque ya tengo una salida, <br>&gt; &gt; <br>&gt; &gt; osea esto <br>&gt; &gt; <br>&gt; &gt; header (&quot;Location: ampliarfull.php?&amp;variable6=$variable6&amp;variable5=<br>
&gt; &gt; $variable5&amp;variable2=$variable2&amp;idpropiedad=<br>&gt; &gt; $idpropiedad&amp;pagina=&quot;.($pagina+1));<br>&gt; &gt;              <br>&gt; &gt; <br>&gt; &gt; por esto<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt;  $pagina=($pagina+1);<br>
&gt; &gt;        $url=&#39;ampliarfull2.php?&amp;variable6=$variable6&amp;variable5=<br>&gt; &gt; $variable5&amp;variable2=$variable2&amp;idpropiedad=$idpropiedad&amp;pagina=<br>&gt; &gt; $pagina&#39;;<br>&gt; &gt;       <br>
&gt; &gt;        ?&gt;    <br>&gt; &gt;      <br>&gt; &gt;      <br>&gt; &gt;       &lt;script&gt;<br>&gt; &gt;       location.href=&lt;?print($url);?&gt;<br>&gt; &gt;       &lt;/script&gt;<br>&gt; &gt; <br>&gt; &gt; <br>
&gt; &gt; pero no me pasa las variables,, <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; saludos,<br>&gt; &gt; gracias..<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Php-avanzado mailing list<br>&gt; &gt; <a href="mailto:Php-avanzado@pato2.fi.mdp.edu.ar" target="_blank">Php-avanzado@pato2.fi.mdp.edu.ar</a><br>
&gt; &gt; <a href="http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado" target="_blank">http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado</a><br>&gt; -- <br>&gt; <br>&gt; Leonardo Tadei<br>&gt; <a href="mailto:leonardot@pegasusnet.com.ar" target="_blank">leonardot@pegasusnet.com.ar</a><br>
&gt; <a href="http://blog.pegasusnet.com.ar" target="_blank">http://blog.pegasusnet.com.ar</a><br>&gt; Firma pública: <a href="http://www.pegasusnet.com.ar/LeonardoTadei-public.key" target="_blank">http://www.pegasusnet.com.ar/LeonardoTadei-public.key</a><br>
&gt; <br>&gt; _______________________________________________<br>&gt; Php-avanzado mailing list<br>&gt; <a href="mailto:Php-avanzado@pato2.fi.mdp.edu.ar" target="_blank">Php-avanzado@pato2.fi.mdp.edu.ar</a><br>&gt; <a href="http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado" target="_blank">http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado</a><br>
                                               
<br>_______________________________________________
Php-avanzado mailing list
<a href="mailto:Php-avanzado@pato2.fi.mdp.edu.ar" target="_blank">Php-avanzado@pato2.fi.mdp.edu.ar</a>
<a href="http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado" target="_blank">http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado</a>                                               </div>
<br>_______________________________________________<br>
Php-avanzado mailing list<br>
<a href="mailto:Php-avanzado@pato2.fi.mdp.edu.ar">Php-avanzado@pato2.fi.mdp.edu.ar</a><br>
<a href="http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado" target="_blank">http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado</a><br></blockquote></div><br></div>