When posting PHP code, please use the board's [noparse]
..
[/noparse] bbcode tags as they make your code much easier to read and analyze.
As for your problem.. the error is most certain that first line. Look at what the beginning of your script looks like:
error_reporting(0)
<?php
You've got 'error_reporting(0)' before the first opening <?php tag, so it's being sent as output. Again, you can't have any output before you attempt to modify HTTP headers (since the output will cause them to be sent before you get the chance to modify them).
Furthermore, that's almost a valid PHP statement... but it's got a few problems:
You should never set error_reporting to 0 - that would prevent PHP from trying to help you fix your errors. Instead, error_reporting should be set to E_ALL or better.
You're missing an ending semicolon.
PHP code only gets executed if it's inside of <?php ... ?> tags, and that statement is not inside any such tags.
salmanoreen;10998905 wrote:let me share index.php and If i remove 1st line then my website get disappear and leave a new error as well 😛
What is the "new error" that you get?