Ok, just to check, this should be ok, right? <![CDATA[ <html> <?php header('Location: http://www.redirected.com/'); // This will give a 'headers already sent' error. // Note the output above, which is before // the header() call. ?> ]]>
Gabor Hojtsy wrote:
No ;) There is no point in providing that Content-type, as HTML is the default. Also plain/html is not a valid content type, text/html is. This is why I have proposed that "Location: http://www.example.com/" header. Also examples should start at the first character on the line, and PHP code should not be indented with one space. <![CDATA[ <html> <?php // This will give an error. Note the output // above, which is before the header() call header("Location: http://www.example.com/"); ?> ]]> Goba
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php