MyBB Community Forums

Full Version: need help configure my php.ini
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys.
currently am facing a little problem in my php.ini configuration
this problem make my wamp never display the header already sent by output warning.

as example the following code
<HTML>
<HEAD>
<TITLE>Cookie Tester</TITLE>
</HEAD>
<BODY>
<?php
$message = 'hello';
echo $message;
setcookie("IM_A_COOKIE", $message, time() + 3600);

?>
</BODY>
</HTML>
this should show this kind of errors. but it's not.
here is a screen of my php.ini settings
[Image: phpinfo_1221185003218.png]
[Image: phpinfo_1221185053869.png]
[Image: phpinfo_1221185085145.png]
IIRC, setcookie() doesn't produce an error if it fails. header() should though.
like this one as example?
<HTML>
<HEAD>
<TITLE>Cookie Tester</TITLE>
</HEAD>
<BODY>
<?php
header('Content-Type: text/plain');
?>
</BODY>
</HTML> 

it's still never show any errors.
the only thing I did to avoid this is to work with xampp Sad
Probably output buffering then. Try with sending a flush() function before the header call.
yup, at least that show the warning!
thanks alot mate..
but as I mentioned above I have turned off output buffering by set it's value to Off in my php.ini
so is there is anything I missed to turn it off?
Nah, output_buffering was set to "no value" which means use the default value (4096 bytes I think).

You could try setting it to 1, but I don't know if PHP will respect the value.
no, 1 give me the same result, but 0 get it to work the way I was need..
thanks a lot ZB for your help.