我想压制警告

时间:2014-03-05 18:53:45

标签: php session warnings suppress

我已经尝试过很多东西,例如将session_start()放在页面开头的页面顶部第一个位置,但它仍然显示警告

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/businxrq/public_html/aftekindia.com/Aftek_India/transaction_new.php:1) in /home/businxrq/public_html/aftekindia.com/Aftek_India/includes/config.php on line 1

1 个答案:

答案 0 :(得分:0)

您可以在ob_start()之前使用session_start()