in reply to Re^2: a classic : 'Premature end of script headers' problem
in thread a classic : 'Premature end of script headers' problem
also: when you get the "premature end of headers" error, the webserver's error log can contain additional useful information (like what is received when it expects the header - generally the error is triggered by code that sends out messages/content before/while sending the header block)
update: you should never use &subname; without parentheses to call a subroutine unless you know why that's a special case, and if you're using parentheses it's always safe to leave off the &, so IMO it's generally a good habit leave off the & and use parentheses where it makes sense, like subname()
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: a classic : 'Premature end of script headers' problem
by hmbscully (Scribe) on Sep 19, 2007 at 18:46 UTC | |
by Joost (Canon) on Sep 19, 2007 at 18:53 UTC | |
by leocharre (Priest) on Sep 19, 2007 at 18:50 UTC | |
by hmbscully (Scribe) on Sep 19, 2007 at 18:55 UTC |