parse error when requiring

From: Date: Thu, 06 Dec 2001 11:51:28 +0000
Subject: parse error when requiring
Groups: php.general 
Request: Send a blank email to php-general+get-76862@lists.php.net to get a copy of this message
I have a question about require... I have a session_start() on top of every page and an if-else construction. <? session_start() if ($SessieEIA->Login == 1) { ?> .... On the bottom of every page <? } else { require "error.php"; } ?> This works fine, but now i made the files sessionstart.php and bottom.php sessionstart.php -------------------------- <? session_start() if ($SessieEIA->Login == 1) { ?> bottom.php -------------------------- <? } else { require "error.php"; } ?> And i require these files on top resp. bottom of the page and i get two parse errors. Can somebody tell me why? Thanks in advance! ________________________________________ Sjoerd van Oosten Digitaal vormgever svoosten@esites.nl Datamex E-sites B.V. http://www.esites.nl Minervum 7368 Telefoon: (076) 5 730 730 4817 ZH BREDA Telefax: (076) 5 877 757 _______________________________________

« previous php.general (#76862) next »