utf-8 bom 惹的祸

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent(output started at /var/www/html/houtai/crm_ajaxdb/get_percust_nums.php:1) in  /var/www/html/houtai/crm_ajaxdb/get_percust_nums.php on line 3

用ajax请求结果中出现这个错,仔细看了看,好像以前没见过这个错,我就找呀找,排查了半天没找出来。到百度上搜了下,看看别人怎么解决的,看了答案,愣了一下......又是这个以前碰过好几次的问题。嗨 悲催哈 。把文件(utf-8格式的)前面的bom去掉(在linux下打开此文件,很容易能看到)就ok

你可能感兴趣的:(utf-8)