PHP Warning  Cannot modify header information

PHP Warning Cannot modify header information

Johnson Udobong

2 месяца назад

35 Просмотров

PHP Warning: Cannot modify header information - headers already sent by (output started at /home/mbncwdor/public_html/data/proj2/includes/conn.php:1) in /home/mbncwdor/public_html/data/proj2/includes/session.php on line 11

You can solve this in a couple ways:


Call ob_start() at the top of the script to buffer the output.

Also note that unless you're buffering output, this error can be encountered by having even a single blank line (or space?) before the starting php tag, because even whitespace counts as output for the purposes of determining whether you can send headers.
Ссылки и html тэги не поддерживаются


Комментарии: