Re: help!
| From: | Marko Vukovic' | Date: | Thu, 24 Aug 2000 14:03:52 +0000 |
| Subject: | Re: help! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-13413@lists.php.net to get a copy of this message | ||
TheDngo wrote:
>
> I have a script that goes like this:
><---snip--->
>
> } else
alarm bells!!!! where's the '{' that's supposed to be here?
> header('WWW-Authenticate: Basic realm="Saint Johns Church Intranet"');
> header('HTTP/1.0 401 Unauthorized');
> echo 'Authorization Required.';
> exit;
>
> }
>
> ?>
>
> I'm getting a "parse error" on the last line, the closing tag. What's
> wrong?
>
When you type your code, always type the { followed by the }, and then
type the stuff between. That way you won't forget.
--
Marko