Re: [PHP] parse error when requiring

2001-12-06 Thread Andrew Forgue

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 [EMAIL PROTECTED]
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] parse error when requiring

2001-12-06 Thread Oosten, Sjoerd van

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 [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
Verzonden: donderdag 6 december 2001 16:13
Aan: Oosten, Sjoerd van
CC: [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] parse error when requiring

2001-12-06 Thread Jon Farmer

 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!

Do you have an include statement in sessionstart.php?

--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763 620378
PGP Key available, send email with subject: Send PGP Key


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] parse error when requiring

2001-12-06 Thread Johnson, Kirk

There is a semi-colon missing on the session_start() line. PHP can't pin
down the exact line number of an error where the error is a missing
terminator.

Kirk

 -Original Message-
 From: Oosten, Sjoerd van [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 06, 2001 8:44 AM
 To: 'Andrew Forgue'
 Cc: '[EMAIL PROTECTED]'
 Subject: RE: [PHP] parse error when requiring
 
 
 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!

 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) 
  {  
  ?
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] parse error when requiring

2001-12-06 Thread jimtronic

You forgot the semicolon (;) after session_start()


   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.


-- 
Jim Musil
-
Multimedia Programmer
Nettmedia
-
212-629-0004
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] parse error when requiring

2001-12-06 Thread Oosten, Sjoerd van

hmm it still doesn't work. Maybe its because if have an if statement in the
include which is closed in bottom.php?


Sjoerd van Oosten 
Digitaal vormgever [EMAIL PROTECTED]
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: Jon Farmer [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 6 december 2001 16:49
Aan: Oosten, Sjoerd van; 'Andrew Forgue'
CC: [EMAIL PROTECTED]
Onderwerp: Re: [PHP] parse error when requiring


 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!

Do you have an include statement in sessionstart.php?

--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763 620378
PGP Key available, send email with subject: Send PGP Key


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]