ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: elk.helmer.co on January 20, 2014, 10:16:01 pm

Title: PHP files starting with <?php no ?> at end?
Post by: elk.helmer.co on January 20, 2014, 10:16:01 pm
Hello,

A few PHP files I have checked begin with  <?php on the first line but, do not have  ?> as the last line. Was this done on purpose? And if so. why do you not need  ?> on the last  line?

John
Title: Re: PHP files starting with <?php no ?> at end?
Post by: IchBin on January 20, 2014, 10:51:10 pm
http://us3.php.net/basic-syntax.instruction-separation

Read the note on this page where it tells you it's optional.
Title: Re: PHP files starting with <?php no ?> at end?
Post by: elk.helmer.co on January 20, 2014, 11:09:02 pm
Interesting,

Thank you for the link.


John
Title: Re: PHP files starting with <?php no ?> at end?
Post by: Joshua Dickerson on January 21, 2014, 02:26:28 am
Best practice - leave it off.
Title: Re: PHP files starting with <?php no ?> at end?
Post by: emanuele on January 24, 2014, 12:18:07 pm
Thanks elmer for reporting!
Since it's not a bug moving out. ;)