Re: Parse error - new set of eyes?

From: Date: Thu, 25 Jul 2002 20:51:55 +0000
Subject: Re: Parse error - new set of eyes?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109601@lists.php.net to get a copy of this message
I had experienced similar problem like that in the past. Part of it had to do with the header() function. Your script checked out fine, just like mine did. Try remarking the line of code where hte header is and see if you don't have hte parse error, if this is the case then it's the header(). "Jas" <jlgerfen@hotmail.com> wrote in message news:20020725204017.20873.qmail@pb1.pair.com... > I am getting a parse error on line 14, I am trying to make sure session vars > are being set before rendering the page. This is lines 12,13,14 & 15. Any > help is appreciated. > Jas > > if ((!$u_name) || (!$p_word)){ > header("Location: index.php"); > session_destroy(); > exit; } > /* Check for missing session vars */ > elseif ((!isset($HTTP_SESSION_VARS['clk']) || > (!isset($HTTP_SESSION_VARS['holy_cow']) || > (!isset($HTTP_SESSION_VARS['ipaddy']) || (!isset($HTTP_SESSION_VARS['a'])) { > /* Begin logging of client info to database table since session vars are > not present */ > require '/path/to/connection/class/db.php'; > >

« previous php.general (#109601) next »