Tuesday, January 1, 2019

mysql - what is this error Cannot modify header information - headers already sent by that i get when i query my rest web-service built with php











I've built a web-service with framework CakePHP. when i query the service it does return the expected content but, it also gives me an error: Warning (2): Cannot modify header information - headers already sent by. What is this and how can i resolve this?


Answer



Could be that you try to set headers using header function after some of the content is already sent.


No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...