Re: Re: Session warning

From: Date: Sun, 17 Jul 2005 05:42:09 +0000
Subject: Re: Re: Session warning
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-218825@lists.php.net to get a copy of this message
Thomas Bonham wrote: > 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 well, there is your answer. Your file starts with \r\n So your PHP tag is not the first thing in your file and PHP will output that leading \r\n. -Rasmus

« previous php.general (#218825) next »