0
$status_header = 'HTTP/1.1 ' . $status . ' ' . getStatusCodeMessage($status);
header($status_header);
header('Content-type: application/json; charset=utf-8');

我将 OS X 10.8 更新到 10.9,将 php 5.3.26 更新到 5.4.17。在 php 5.3.26,没有错误!!!但错误发生在 php 5.4.17。

When return json to iOS, 
Warning: Cannot modify header information - headers already sent by (output started at 
4

0 回答 0