What is PHP Error: Cannot modify header information ?

This is a common PHP error which is usually caused by:

- White spaces before or after the PHP start "<?php" or end "?>" tags;

- Various problems with the header() statement. Check carefully the code before and at the line of this statement.

This error might be hard to troubleshoot in cases where different files are included and all of them have to be carefully expected. An easy workaround is to place a php.ini file containing the following directive:

output_buffering = On

This php.ini file has to be placed in the directory where the error occurs.

  • 0 Користувачі, які знайшли це корисним
Ця відповідь Вам допомогла?

Схожі статті

Can I use cURL with my account?

Yes, all of our servers have cURL enabled. The path to cURL is /usr/bin/curl .

Do you support installation and use of PHPBB?

We have one touch installs for XMB, PHPBB, and Invisionboard. Here are some links to some...

Do you support Python?

Yes, we do. The path to Python is /usr/bin/python .

Does WHW support PHP HTTP Authorization?

We do support the PHP HTTP Authorization and in order to enable it you need to add the following...

How do I install the CGI scripts generated?

You basically need a few things before you can get started: You will need a web host that...