Re: Premature EOS Header
| From: | Brian Clark | Date: | Sat, 22 Dec 2001 18:23:54 +0000 |
| Subject: | Re: Premature EOS Header | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78580@lists.php.net to get a copy of this message | ||
* Anthony F. Rodriguez (afrodriguez@att.net) [Dec 22. 2001 10:25]:
> When I call the following script, I get "Premature End of Script Header". Why?
> <?php
[...]
> if ($password!=$row_2["password"])
> {
> @mysql_free_result($result_1);
> @mysql_close($connection);
> header ("location:dis_3.htm");
It may be because of that ^^^ line. Try this:
header("Location: dis_3.htm");
Or check your server's error_log (which is bound to give you the reason
why).
--
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Common sense is not.