; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP's output layer a
; bit. You can enable output buffering during runtime by calling the output
; buffering functions. You can also enable output buffering for all files by
; setting this directive to On. If you wish to limit the size of the buffer
; to a certain size - you can use a maximum number of bytes instead of 'On', as
; a value for this directive (e.g., output_buffering=4096).
output_buffering = 4096
PHP 5.2 thêm cấu hình đặt mặc định bật output_buffering, có thể sử dụng các function sửa header (session_start, header) mà ko bị báo lỗi.
Các version trước nếu sử dụng session_start khi đã gửi data đi sẽ báo lỗi nếu ko sử dụng ob_start();
Có thể tắt tính năng này bằng: output_buffering =Off
Kiểm tra headers_sent ko thấy gửi header đi thật
Monday, September 13, 2010
Thursday, September 9, 2010
Subscribe to:
Comments (Atom)