I'm having problems understanding how a header("Location: http://www.google.com/"); can work in the middle of a HTML page's <body>.
Shouldn't there be an error since the header has already been sent due to the HTML output, way before the <?php ... ?> part started.
Ben almak için bekliyordum ki Cannot modify header information - headers already sent by... uyarı bahsediyorum.
Benim yerel PHP dev ortamında (Apache/2.2.15 (Win32) PHP/5.3.2) bu test ediyorum.
İşte bir örnek:
<html>
<head>
</head>
<body>
<?php header("Location: http://www.google.com/"); ?>
</body>
</html>
Herhangi bir fikir? Teşekkürler.