After answering the first time on PPCG on "Source code ecological footprint" I had a little discussion about it. I found it's OK if your program throws notices or warnings. But I couldn't find anything about the opening PHP tag.
My question is: Do I need to include and count it? If yes, is the short tag
<? instead of
<?php allowed, as it must be enabled via
--enable-short-tags or php.ini?
In any case, could somebody please add an explanation in their answers on why it is needed or not? I think this might be useful for other users as well as currently all different versions can be found here in PHP answers.
Interesting read as well: Running PHP with
-rinstead of code tags. If a program is run from the command line using
-roption it doesn't need the opening tag, like:
php -r "echo 'ok';"
I hope this is not a duplicate, found nothing related when searching for the tag and word "PHP".