PHP session start “Cannot send session cookie and cache limiter”

前端 未结 3 1902
野的像风
野的像风 2021-01-14 03:10

I\'ve changed my hosting server from a Windows to a Linux system. But when I run my PHP program, I get this errors:

Warning: session_start() [function.sessio         


        
3条回答
  •  南方客
    南方客 (楼主)
    2021-01-14 03:50

    You have a leading BOM, new line or other whitespace character before the opening tag.

    The errors talk about line 2 and line 4, but in the actual code above session_start() is called on line 3. Therefore, leading whitespace is the problem...

提交回复
热议问题