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

Posted by Rasmus Lerdorf on 10/21/29 11:21

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

 

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

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