Here is a sample code that I am testing:
<?php
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 'on');
?>
<html>
<?php setcookie("test", "value", time() + 1000); ?>
<body>
cookie sent Text
</body>
</html>
As you notice, there is a single space before the <html> tag and that should cause a warning (I am sending a cookie information AFTER the headers are already sent).
When I run this code in Zend Studio, I see the warning. However, when I run it directly in IE, I don't see any warning or error!
What am I doing wrong? It could be a problem in the php.ini configuration file? I am setting error-handling-values in my script.
Once I make those changes in php.ini, do I need to restart Apache and the changes will automatically take affect?
thanks