[phpa] Headers already sent problem
- From: Andreas Otto <andreas@xxxxxxxxxx>
- To: phpa@xxxxxxxxxxxxx
- Date: Mon, 24 Dec 2001 15:28:48 +0100
Hi,
looks like I have some problems using phpa. Despite other information on the
list I still get the "Headers already sent" warning.
The first time I hit the page, it displays and _no_error is being written to
the php_error_log. The second or third time, the error starts appearing in
the log.
There is nothing special in the file apart from the printf() function ;-)
which is on the line the warning complains about.
PHPA settings are es follows:
[php.ini]
; PHP Accelerator extension
zend_extension="/usr/share/php_extensions/php_accelerator_1.1p1.so"
phpa.c0_logging = "On"
[virtual host setting]
# PHP Accellerator settings
php_value phpa "On"
php_value phpa.cache_dir "/usr/local/httpd/test/tmp"
php_value phpa.c0_ttl "1d"
Despite having acitavated the logging no messages are appearing in the apache
error_log.
I am running SuSE 7.3 which is using glibc-2.2.
[/var/log/httpd/error_log]
[Mon Dec 24 15:13:48 2001] [notice] Apache/1.3.20 (Linux/SuSE) PHP/4.0.6
configured -- resuming normal operations
[Mon Dec 24 15:13:48 2001] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[/home/andreaso/projects/t/test/php_error_log]
[24-Dec-2001 15:14:49] PHP Warning: Cannot add header information - headers
already sent by (output started at
/usr/local/httpd/test/www/phpa/page03.php:17) in Unknown on line 0
[24-Dec-2001 15:15:06] PHP Warning: Cannot add header information - headers
already sent by (output started at
/usr/local/httpd/test/www/phpa/page03.php:17) in Unknown on line 0
I hope that someone could give me a hint what might go wrong here.
Merry Christmas,
Andreas
--
Andreas Otto <andreas@xxxxxxxxxx>
Using PHP on Windows? www.php4win.de
-- HTML Attachment decoded to text by Listar --
-- File: page03.php
start(); } ?> [phpa]
index.php[1] stop(); printf ("
Time elapsed: %s", $timer->timeElapsed()); } ?>
--- Links ---
1 index.php
------------------------------------------------------------------------
www.php-accelerator.co.uk Home of the free PHP Accelerator
To post, send email to phpa@xxxxxxxxxxxxx
To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe
- Follow-Ups:
- [phpa] Re: Headers already sent problem
- From: Spinlock
- [phpa] Re: Headers already sent problem
- From: Chris James
- [phpa] Re: Headers already sent problem
- From: Nick Lindridge
Other related posts:
- » [phpa] Headers already sent problem
- » [phpa] Re: Headers already sent problem
- » [phpa] Re: Headers already sent problem
- » [phpa] Re: Headers already sent problem
- » [phpa] Re: Headers already sent problem
- » [phpa] Re: Headers already sent problem
- » [phpa] Re: Headers already sent problem
- » [phpa] Re: Headers already sent problem
- » [phpa] Re: Headers already sent problem
- » [phpa] Re: Headers already sent problem
- » [phpa] Re: Headers already sent problem
- » [phpa] Re: Headers already sent problem
- » [phpa] Re: Headers already sent problem
- [phpa] Re: Headers already sent problem
- From: Spinlock
- [phpa] Re: Headers already sent problem
- From: Chris James
- [phpa] Re: Headers already sent problem
- From: Nick Lindridge