all header-modifying functions should be BEFORE any echoing is done, so:

session_start();
if(!session_is_registered("camion"))
   DIE("error");

should be BEFORE:
<html>
<head><title>rrrr</title></head>
<body topmargin="0" leftmargin="0">

Ysrael guzmán wrote:

rrrrTHIS IS MY SCRIPT:
AND THE ERROR IS
Warning: Cannot send session cache limiter - headers already sent
(output started at
c:\foxserv\www\t-demo1\pedidos\prod_mostrar_tipo.php:4) in
c:\foxserv\www\t-demo1\pedidos\prod_mostrar_tipo.php on line 5


/////////////////////// SCRIPT ///////////////////////////








"; echo " "; echo "*", $filas['prod_descripcion'], "*"; echo ""; echo "
"; echo "
\n"; echo "

"; echo " "; //echo ""; echo ""; // if (esta_en_array($camion, $cantidad)) // { // echo "VALUE='$cantidad' size='15'>"; // } // else // { // $cantidad = 0; // echo "VALUE='$cantidad' size='15'>"; // } // echo ">"; echo "\n"; echo "\n"; echo "\n"; // echo ""; // echo ""; echo " "; echo "\n"; echo ""; echo "
"; echo "
"; echo ""; echo " "; echo "

"; echo ""; echo "
"; echo ""; echo " "; echo "*CODIGO: *", $filas['prod_cod'], "
\n"; echo ""; echo "
"; echo ""; echo " "; echo "*PRESENTACION: *", $filas['prod_presentacion'], "
\n"; echo ""; echo "
"; echo ""; echo " "; echo "*FABRICANTE: *", $filas['prod_fabricante'], "
\n"; echo "
"; echo " "; echo "*DESCRIPCION: *", $filas['prod_propiedades'], "
\n"; echo ""; echo "
"; } echo "

"; ?>









Ysrael Guzmán Meza


-----Mensaje original-----
De: BigDog [mailto:bigdog@;venticon.com]
Enviado el: Jueves, 14 de Noviembre de 2002 09:54 a.m.
Para: [EMAIL PROTECTED]
Asunto: RE: [PHP] PHP Auth with Apache


You are sending the header information to the browser before the session
stuff begins...


make sure that you call "session_start();" right after your I have a problem, i'm new in PHP
>
>It is the problem in my browse....give me the solution please
>
>Warning: Cannot send session cache limiter - headers already sent
>(output started at c:\foxserv\www\t-demo1\pedidos\prod_oficina.php:5)
>in c:\foxserv\www\t-demo1\pedidos\prod_oficina.php on line 6
>
>
>HELP MEEEEEEEEEEEEEEEEEEE!!!!!!!!!!1
>
>Sos
>
>ygm


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to