Re: Re: Session warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok that is some help.

The first five lines of the file are the following.


   <?php 
	 session_start();
	 require("functlib.php"); 
   ?>

od -c adminlogin.php | head out put the folowing.

[thomas@thomas property]$ od -c adminlogin.php | head
0000000  \r  \n               <   ?   p   h   p      \r  \n  \t       s
0000020   e   s   s   i   o   n   _   s   t   a   r   t   (   )   ;  \r
0000040  \n  \t       r   e   q   u   i   r   e   (   "   f   u   n   c
0000060   t   l   i   b   .   p   h   p   "   )   ;      \r  \n
0000100       ?   >  \r  \n               <   h   t   m   l   >  \r  \n
0000120               <   h   e   a   d   >  \r  \n  \t       <   t   i
0000140   t   l   e   >   C   I   S   1   6   6   A   E       -       A
0000160   d   m   i   n       L   o   g   i   n   <   /   t   i   t   l
0000200   e   >  \r  \n  \t       <   l   i   n   k       r   e   l   =
0000220   "   s   t   y   l   e   s   h   e   e   t   "       t   y   p
[thomas@thomas property]$


Thanks
Thomas


On 7/16/05, Rasmus Lerdorf <rasmus@xxxxxxx> wrote:
> On Sat, 16 Jul 2005, Thomas Bonham wrote:
> > Jasper Bryant-Greene wrote:
> > > Thomas Bonham wrote:
> > >
> > >> Hello All,
> > >> I'm working on session and I'm getting this warning. Maybe someone can
> > >> help fixing this problem. Below is the following code.
> > >>
> > >> Warning: Warning: session_start() [function.session-start]: Cannot
> > >> send session
> > >> cookie - headers already sent by (output started at
> > >> /var/www/html/bonham/cornerstone-data/property/adminlogin.php:2) in
> > >> /var/www/html/bonham/cornerstone-data/property/adminlogin.php on line
> > >> 3
> > >
> > >
> > > Are you absolutely sure that there is *no* output before the
> > > session_start() in adminlogin.php?
> > >
> > > If there is it won't work. Even a space before the first <?php, or a
> > > Unicode BOM, or any kind of output can screw it up.
> > >
> > > Jasper
> >
> > The first thing at is in my code is the start session command.
> 
> The error message indicates that your start_session() call is on line 3
> and that output was started at line 2.  Try pasting the first 5 lines of
> that adminlogin.php script here.  The other thing that is normally useful
> is to have a look at the raw bytes in the file.  Try this:
> 
>   od -c adminlogin.php | head
> 
> from your command line.  That will tell you exactly what is in the file.
> Sometimes editors try to be a little bit too smart for their own good.
> 
> -Rasmus
> 


-- 
------------------------------------------------------------------
Thomas Bonham
thomasbbonham@xxxxxxxxx
bonhamlinux.org
Cell 602-402-9786

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux