455A.C’s Skywalker Ranch | 455A.C

TAG | php

三/09

25

apache重装二三事

Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at XXXXX) in XXXX on lineX

修改php.ini中的session.auto_start = 0 设为 session.auto_start = 1

Cannot modify header information – headers already sent by

修改php.ini 中 output_buffering 设为 on

详细请看

session.auto_start boolean
session.auto_start 指定会话模块是否在请求开始时自动启动一个会话。默认为 0(不启动)。

中文说明 英文说明

output_buffering boolean/integer

You can 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). As of PHP 4.3.5, this directive is always Off in PHP-CLI.

英文说明

, , ,

十二/07

28

sql的datetime

今天晚上被郁闷了一会,mysql通过php返回一个日期给mssql,死活说我query failed…结果发现mssql里面的格式是datetime,而我的只有date没有time,所以就存不进去了,硬加了个00:00:00 结果就搞定了…唉~~~~经验up了一下,值了

,

Find it!

Theme Design by devolux.org