- Edited
Hey everyone. I was reading about output buffering for php and have noticed that enabling it requires more resources, and that for sure slows down websites due to more cpu load and data transfer between the client and server. I checked the php.ini config file and it turned out that output buffering was on. I turned it off, reloaded the website page and got an error with the header: headers already sent. Should I remodify my code so that no information goes to the output before calling the header? Is there an alternative? Thanks for any replies.