Re: (YA NO SE QUE HACER) PROBLEMAS CON VARIABLES SESION EN WINDOWS
| From: | Díaz | Date: | Mon, 10 Mar 2003 16:21:08 +0000 |
| Subject: | Re: (YA NO SE QUE HACER) PROBLEMAS CON VARIABLES SESION EN WINDOWS | ||
| References: | 1 2 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-33509@lists.php.net to get a copy of this message | ||
prueba a ver poniendö: session_start();
antes del session_register...
----- Original Message -----
From: "Francisco Mendoza" <fmendoza@udelmar.cl>
To: <lista@phpes.com>
Sent: Monday, March 10, 2003 10:54 AM
Subject: Re: [PHP-ES] (YA NO SE QUE HACER) PROBLEMAS CON VARIABLES SESION EN
WINDOWS
> session tiene que estar antes que cualquier salida de html.
> prueba este codigo:
>
> <?
> session_register('cont');
> ?>
> <html>
> <head>
> <title>Titulo</title>
> </head>
> <body>
> </body>
> </html>
>
>
> ----- Original Message -----
> From: "Megabyte" <atmegabyte@yahoo.com>
> To: <lista@phpes.com>
> Sent: Monday, March 10, 2003 11:42 AM
> Subject: [PHP-ES] (YA NO SE QUE HACER) PROBLEMAS CON VARIABLES SESION EN
> WINDOWS
>
>
> >
> > Hola a todos gracias todos por la sugerencia sobre el path que habia que
> ponerle a los archivos temporales
> > tal como me dijeron a la directiva "session.save_path" le agregue el
> camino de las carpetas temporales
> > y quedo asi:
> >
> > session.save_path = c:\php\tmp
> >
> > Ahora me sale el siguiente mensaje
> >
> > Warning: session_register() [function.session-register]: Cannot send
> session
> > cookie - headers already sent by (output started at
> > C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\~scp.php:6) in
> > C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\~scp.php on line 7
> >
> > Warning: session_register() [function.session-register]: Cannot send
> session
> > cache limiter - headers already sent (output started at
> > C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\~scp.php:6) in
> > C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\~scp.php on line 7
> >
> >
> > y el codigo es el siguiente
> >
> > <html>
> > <head>
> > <title>Titulo</title>
> > </head>
> > <body>
> > <?
> > session_register('cont');
> > ?>
> > </body>
> > </html>
> >
> > siempre cuando estoy programando en php en windows tengo problemas con
las
> > variables sesion y eso este pequeño ejemplo para que vean lo que me
pasa,
> por
> > favor ayudenme, yo estoy haciendo un proyecto en php y la suerte que es
mi
> unico
> > bendito error, echo de todo y no he visto cambio, sera acaso que tendre
> que
> > copiar alguna otra directiva algun parametro.
> >
> > Nota: tengo windows 2000 profesional, apache 2 y php 4.3.0
> >
> > Megabyte
> >
> >
> >
> > ---------------------------------
> > Do You Yahoo!?
> > Todo lo que quieres saber de Estados Unidos, América Latina y el resto
del
> Mundo.
> > Visíta Yahoo! Noticias.
> >
>
>
>
>
> ---------------------------------------------------------------------
> Archivo On-line: http://www.phpes.com/
> via news: news://news.phpes.com/
> Manual PHP en español: http://www.php.net/manual/es/
> Para dar de baja la suscripción, mande un mensaje a:
> lista-unsubscribe@phpes.com
>