I understand its usually a header has been already sent type scenario but I'm starting to lose it. I have no idea how to sniff out where I mucked up in my code. I tried using a print sub routine that prints both to stdout and to a file. I saved the file output as an html it works. So its not an html issue. But I have no idea how to find out where the premature header is being sent.
Jump to Post
If you are talking about printing out to HTML as a file and it can be opened using a browser, it may be because a browser usually tries to correct the HTML and can display (almost) correct.
The problem with premature header could be from not closing scope or incorrectly …
All 2 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.