PDA

View Full Version : Premature end of script headers


Graphik
11-14-2002, 03:51 PM
Hey all,

Well, I have sent my web across to an Apache server and aside from all the other formatting errors I am encountering, the javascript I am using for my menu is crashing the browser NET4.76 - the error that is reported is the:

"Premature end of script headers: /usr/local/cgi-bin/blah.js"

So I looked around an some people had suggested that it isn't printing the "Content-type: text/html\n\n"; Now this particular piece of info was for perl but I thought it might be on the right track. Wrong :confused: Any help would be appreciated....

joh6nn
11-14-2002, 04:30 PM
personally, i have no idea what you're talking about, so for me at least, you have to explain that a little bit more clearly.

Graphik
11-14-2002, 04:59 PM
joh6nn,

Essentially it is a server side menu script that is called when the page is executed. When the page is called the browser crashes, and upon checking the "error_log" I get the "Premature end of script headers:" fault.

I am using an Apache server running NS4.76. I was just wondering if anyone had seen this error before and what they did to mitigate the problem. Please let me know if you need anything more.

Thanks

joh6nn
11-14-2002, 05:07 PM
well, it seems to me, that this belongs in the server side forums, then, so i'm gonna move it there.

good luck.

Mouldy_Goat
11-14-2002, 06:02 PM
I think the problem is that you've put a JavaScript file into your cgi-bin, so that your Apache server is trying to execute it as though it were some sort of CGI script, but of course it's not, so the server software thinks you've written an invalid script, and complains.

Try putting the file in a different directory, and see if your menu works then.