Premature end of script headers

B

Bob L

I've been trying to incorporate some scripts
(http://support.microsoft.com/default.aspx?scid=321439) into a website and
get an error whenever I try to execute the files after I've published them
to the server. For example, one of the asp files (default.asp) is as
follows:

<% @language="vbscript" %>
<html>
<head><title>Home Page</title></head>
<body>
<h3>Home Page</h3>
<p>You are logged on as:
<%
If Len(Session("UID")) = 0 Then
Response.Write "<b>You are not logged on.</b>"
Else
Response.Write "<b>" & Session("UID") & "</b>"
End If
%>
</p>
<ul>
<li><a href="secure.asp">Secure Page</a></li>
<li><a href="unsecure.asp">Unsecure Page</a></li>
</ul>
</body>
</html>

When I try to execute this, I get an "Premature end of script headers" error
on the server.

Is this a problem with the server or is it a problem with the script?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top