Re: php script error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Edit your PHP.ini file, and find the line:

output_buffering

set it to ON

so it is like this:

output_buffering = On

This will allow you to output the information in any location of the
document, and could resolve your problem. :)

If you don't want to allow this then check that your script is written all
before you write <html>. And don't add another Header into the document
unless it is before the HTML tag as well :)

<?php
//script
?>
<html><head><title>Hi</title></head><body></body></html>

Hope it helps,

----- Original Message ----- 
From: "susilo soewarno" <susilo@xxxxxxxxxxxxxxxxxx>
To: <php-windows@xxxxxxxxxxxxx>
Sent: Friday, June 18, 2004 6:56 AM
Subject:  php script error


> 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
>
>

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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux