RE: [PHP] parse error when requiring
| From: | Oosten, Sjoerd van | Date: | Thu, 06 Dec 2001 15:44:04 +0000 |
| Subject: | RE: [PHP] parse error when requiring | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-76896@lists.php.net to get a copy of this message | ||
Parse error: parse error in /home/sites/site139/web/EIA/sessionstart.php on
line 10
It's strange that line number 10 doesn't exist!
________________________________________
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
_______________________________________
-----Oorspronkelijk bericht-----
Van: Andrew Forgue [mailto:aforgue@agitated.net]
Verzonden: donderdag 6 december 2001 16:13
Aan: Oosten, Sjoerd van
CC: php-general@lists.php.net
Onderwerp: Re: [PHP] parse error when requiring
Maybe you could give a little more info on what
the parse error actually says?
On Thu, 2001-12-06 at 06:51, Oosten, Sjoerd van wrote:
> 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
> _______________________________________
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net