You are here: Re: [PHP] Re: Session warning « PHP « IT news, forums, messages
Re: [PHP] Re: Session warning

Posted by Thomas Bonham on 07/17/05 16:16

Thanks is for the help.
That is a very good command.

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

Also I gess I can't have the null line at the top of my file.

Again Thanks of the help.
Thomas

On 7/16/05, Rasmus Lerdorf <rasmus@lerdorf.com> wrote:
> 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
>


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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация