After googling i found that i should remove any white spaces before the session_start()
i did that too
but am getting above mentioned warning
y i dont know
anyone pls help me
Moderator: General Moderators
That includes an invisible UTF-8 byte order mark. Can you open the file in a hex-editor?tasairis wrote:And there is absolutely nothing before the "<?php"?
Code: Select all
<?php
session_start();
?>
<html>
</html>
This has nothing to do with PHP version 5 (or PHP whatsoever).cerberusstudios wrote:In PHP 5 you can no longer start your HTML before your session.
doctype = html = part of regular output / content (i.e. can never precede headers)Even the doctype cannot come before the session (someone please correct me if i am wrong on that, but I am fairly certain).