I am a programmer and I am picking up PHP, I cannot seem to search for this so I hope this is not a duplicate. Currently this is giving me an error at line 4 on header.php which says: unexpected $end
I know that it is complaining about the syntax but I don't fully understand how the files are parsed processed and get executed at runtime (hence creating this error). I would be grateful if somebody can fill me in if I have missed any core concept in PHP, thanks.
header.php
<?php
if(true){
echo "Helloworld";
?>
body.php
<?php
include('header.php');
echo "The great brown fox jumps over the lazy dog.";
include('footer.php');
?>
footer.php
<?php
}else{
echo "bye bye";
}
?>