I've seen this questions milions of times, but none of the solutions works for mine.
This works on my pc, but not on a web-hosting. Is it something to do with the php.ini or httpd.conf ?
<?php
ob_start();
setcookie("show","1",time() + 300);
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>UDO - Under Development Office</title>
<body>
Hello World!
</body>
</html>
Later edit:
<?php
var_dump(ob_get_contents());
?>
Prints: bool(false)
AND
<?php
ob_start();
var_dump(ob_get_contents());
?>
Prints: string(0) ""
This is not a duplicate question since none of the questions asked before on Stackoverflow resolved this issue.
I must insist that this works on my Mac OS X with PHP 5.3.6, but not on a shared host(same PHP version).