Does the PHP header function have a limit to the amount of textual or binary output to the browser before it refuses to redirect the browser to the provided URL?
I have noticed that I can output to the browser then do a redirect with header('Location: $url'); exit();, but it seems as though after I have output a certain amount it refuses and outputs this message?
I have never came across anything to suggest this during Zend Certification study, so I wondered if it was a undocumented feature?
Warning: Cannot modify header information – headers already sent by
(output started at /var/www/vhosts/dev/dev_crmpicco/co.php:935) in
/var/www/vhosts/dev/dev_crmpicco/includes/Rangers.inc.php on line 1701
The answer can be found in header() manual
You can’t output any text before you set the headers. You might have some sort of output buffering set that allows you to echo anything, if you think you are able to output a certain amount of bytes before header fails.