include and warning: headers already sent by ..

include and warning: headers already sent by ..

am 08.02.2008 20:50:50 von germana

--=-f+yOa7+dDH1oUmzHNB0d
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi there!!!

i just want to ask something...

Sometimes when i need to do several include, or require_once or both i
get the messeage:

Warning: cannot modify header information - header already sent
by ....................

How i can solve this problem...

Thanks!!!

--=-f+yOa7+dDH1oUmzHNB0d--

Re: include and warning: headers already sent by ..

am 08.02.2008 21:08:36 von Piotr Pluciennik

--0-734524478-1202501316=:89984
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Try to remove characters (like spaces) that can be found at the end of your php scripts...

example:
....
your script
....
?>####

where ### are any characters (even invisible), after the closing tag. There should be nothing.

HTH, let me know
Piotr

germana wrote: Hi there!!!

i just want to ask something...

Sometimes when i need to do several include, or require_once or both i
get the messeage:

Warning: cannot modify header information - header already sent
by ....................

How i can solve this problem...

Thanks!!!


--0-734524478-1202501316=:89984--

RE: include and warning: headers already sent by ..

am 08.02.2008 22:17:30 von Bill Bolte

Also make sure that one/some of the includes aren't trying to echo/print
something before it should. For ex: don't echo something before trying
to output header information like redirecting to another page.


Bill Bolte

-----Original Message-----
From: germana [mailto:germanaoliveirab@gmail.com]=20
Sent: Friday, February 08, 2008 1:51 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] include and warning: headers already sent by ..

Hi there!!!

i just want to ask something...

Sometimes when i need to do several include, or require_once or both i
get the messeage:

Warning: cannot modify header information - header already sent
by ....................

How i can solve this problem...

Thanks!!!

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

Re: include and warning: headers already sent by ..

am 09.02.2008 16:35:14 von Trystano

----------MB_8CA39488002A6F3_1680_3FF3_mblk-d18.sysops.aol.c om
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"


Should you also just that there are no blank spaces before the includes statements in the script? Because the moment there is data (or blank spaces) in a script then the headers are sent.

Thanks

Tryst







-----Original Message-----
From: Bill Bolte
To: php-windows@lists.php.net
Sent: Fri, 8 Feb 2008 21:17
Subject: RE: [PHP-WIN] include and warning: headers already sent by ..










Also make sure that one/some of the includes aren't trying to echo/print
something before it should. For ex: don't echo something before trying
to output header information like redirecting to another page.


Bill Bolte

-----Original Message-----
From: germana [mailto:germanaoliveirab@gmail.com]
Sent: Friday, February 08, 2008 1:51 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] include and warning: headers already sent by ..

Hi there!!!

i just want to ask something...

Sometimes when i need to do several include, or require_once or both i
get the messeage:

Warning: cannot modify header information - header already sent
by ....................

How i can solve this problem...

Thanks!!!

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






____________________________________________________________ ____________
AOL's new homepage has launched. Take a tour at http://info.aol.co.uk/homepage/ now.

----------MB_8CA39488002A6F3_1680_3FF3_mblk-d18.sysops.aol.c om--