|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2000-08-03 11:29 UTC] support at masterbyte dot de
 I've got the following Problem with require : I have a script, an in Line 10 is a normal parse error (missing ; or something like that). In line one, i am including a 309 lines php file with include(); . Result : Error in script.php line 10 : missing ; . Correct ! If I use require() instead of include() i get the following error : Error in includefile.php line 319 : missing ; . Wrong ! Best regards, Nico Blanke PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 03:00:01 2025 UTC | 
------------------ INCLUDE.PHP <?php $a = 1; $b = 1; $c = 1; $d = 1; $e = 1; $f = 1; $g = 1; $h = 1; $i = 1; $j = 1; php?> -------------------- EOF -------------SCRIPT.PHP <?php require('./include.php'); $x = 1; $y = 2 $z = 3; php?> ----------------EOF As you will notice, there is a missing ; in the code above. If I run the script, i get the error Parse error: parse error in ./include.php on line 18 If i change require() to include(), the CORRECT error message appears : Parse error: parse error in D:\www\Petra\test\script.php on line 5 Best regards, Nico Blanke .User feedback: Parse error: parse error in D:\www\Petra\test\script.php on line 5 ------------------ INCLUDE.PHP <?php $a = 1; $b = 1; $c = 1; $d = 1; $e = 1; $f = 1; $g = 1; $h = 1; $i = 1; $j = 1; php?> <?php require('./include.php'); $x = 1; $y = 2 $z = 3; php?>