Re: cannot add 'header' information
| From: | Sudeep Zamudra | Date: | Tue, 22 Jun 2004 05:36:33 +0000 |
| Subject: | Re: cannot add 'header' information | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-24040@lists.php.net to get a copy of this message | ||
Hi there,
I fully agree with what Svensson has said. You must have any HTML output somewhere in the page. You
can override this by giving a <?php ob_start(); ?> at the top of the page.
...SuDeEp...
Amit Arora <amit.arora@digitalamit.com> wrote:
Also, make sure that there is not empty space or empty lines before the first
Regards,
Amit
http://www.digitalamit.com/
B.A.T. Svensson wrote:
> Check your code again, anda again! Because somewhere you already starts to
> output something - hence the error messsage. Not /if/, but /when/ you are
> 115% sure you have no segment of code that been outputing some HTML, then
> your error message may be caused by (the failure of) shell execution of a
> command. Do you you php script call any external programs?
>
>
> -----Original Message-----
> From: susilo soewarno
> To: Svensson, B.A.T. (HKG)
> Sent: 18-6-2004 8:30
> Subject: RE: [PHP-WIN] cannot add 'header' information
>
> All the hmtl output is viewed 100%, but on top header of the page still
> left this error.
>
> -----Original Message-----
> From: Svensson, B.A.T. (HKG) [mailto:B.A.T.Svensson@lumc.nl]
> Sent: 18 Juni 2004 13:21
> To: 'php-windows@lists.php.net '
> Subject: RE: [PHP-WIN] cannot add 'header' information
>
> Are you 103% sure you haven't start to output some HTML code yet?
>
> -----Original Message-----
> From: susilo soewarno
> To: php-windows@lists.php.net
> Sent: 18-6-2004 7:54
> Subject: [PHP-WIN] cannot add 'header' information
>
> Can you help me,
>
> sometimes i got error message and it goes like this :
> "Cannot add header information - headers already sent by (output started
> at C:\phpnuke\html\mainfile.php:42) in C:\phpnuke\html\mainfile.php on
> line 171"
>
> For additional info, right now i'm using IIS not Apache Web Server
>
> Best Regards,
>
>
> Susilo
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!