|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-11-17 04:54 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 11 23:00:01 2026 UTC |
The following file will return a parse error at the 'endif;' file1: <!-- testif.html --> <html> <head> <title> alternative if syntax test </title </head> <body> <?php include("testif.seg") ?> <H2>testing alternate if</H2> <?php endif; ?> </body> </html> file2: <!-- testif.seg --> <?php if ($debug): ?> <H2> Debug = <?php echo $debug ?></H2> <?php else: ?> But if I cut and paste the inclusion into the file instead it works fine. <!-- testif2.html --> <html> <head> <title> alternative if syntax test </title </head> <body> <!-- testif.seg --> <?php if ($debug): ?> <H2> Debug = <?php echo $debug ?></H2> <?php else: ?> <H2>testing alternate if</H2> <?php endif; ?> </body> </html>