0

I have about 10 files, one includes other. I am trying to set header information on the beginning. But, I get an error: "Cannot modify header information - headers already sent by..." All my files are saved in UTF-8 without BOM. No echo anywhere, and I still get the error.

One more thing. On my computer, everything runs without problems, whatsoever. But when I put all my scripts on the webserver (hosted at justhost), I have this problem.

Any ideas?

Joachim Sauer
  • 302,674
  • 57
  • 556
  • 614
DekiB
  • 57
  • 8
  • What language/framework are you talking about? PHP? – Joachim Sauer May 24 '13 at 08:11
  • Yup, PHP. :) Sorry, I forgot to tell... :) – DekiB May 24 '13 at 08:33
  • I am already familiar with post you mentioned. I know all that from before. Anyway, I am now at this point: when I do ob_start() on start and ob_flush() at the very end, everything works just fune, but, in most cases, this method is causing big delays, because, files that I am trying to pass through PHP are big. My next step will be to see if PHP sent headers, and what is already sent. I am, btw trying to change Content-type to UTF-8, for Cyrillic letters. – DekiB May 24 '13 at 10:40
  • header_sent()/header_list() - nothing sent... :D This is ridiculous... – DekiB May 24 '13 at 10:48
  • What is the complete error message then? *"Output started at ..., triggered on line ..."*. `curl` the page from the command line or using a tool that gives you the guaranteed raw output and check if there really isn't *anything* using a hex editor. – deceze May 24 '13 at 11:28

0 Answers0