Monday, September 13, 2010

output_buffering & session_start

; 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

Thursday, September 9, 2010

Một sai lầm nào đó đã để mất 1 từ khóa  đang ở trong top 10, chưa rõ nguyên nhân làm sao trong khi ở qt đang dẫn đầu

Saturday, September 4, 2010

ngheo thi lau, giau chang may choc.

chiu kho cam cui lam an. chu may man kho den dc lam.

no home, no car, no money