i received this error when i redirected a page. i read about "whitespace", i am still at lost. sorry fot to much trouble: 🙂

Warning: Cannot modify header information - headers already sent

    When using [man]header/man, any prior output or blank space before a <?php tag will cause this error.

      Warning: Cannot modify header information - headers already sent by (output started at c:\inetpub\wwwroot\test\name.php :7) in c:\inetpub\wwwroot\test\name.php on line 106

      line 106 is where the -- header('Location: fine.html'); ---is located.

      is the number 7 on ---> c:\inetpub\wwwroot\test\name.php :7 ---> means the error is on the 7th line?

      i am a total beginner in PHP, so please forgive my ignorance.

        It means exactly what it says. On line 106, you used the header() function. On line 7 of name.php, something was outputted - either using echo/print or there was something outside of a <?php ?> tag (which was automatically sent to the browser).

          geez, thanks a lot bradgrafelman. i hope i could still count on you next time i need help. thanks a lot. 🙂

            Write a Reply...