Originally Posted by grace1004
Go to your Cpanel - >> Software/Services - click 'View PHP Configuration', you will get
a table showing configuration of php, Apache and MySQL for your hosting server. In the
table under PHP Core, you will see short_open_tag is On, in which case <? ?> is working.
If you test a php file with short_open_tag, you will see it is working.
I'm talking about servers in general, not only 000webhost servers.
And whenever you move to a different host, there is a slight chance that the shorttags won't work.
And if you are ever planning to make a CMS or any public scripts, you'll end up having a lot of people whom cannot use your script IF you use shorttags, allthough a lot of people could fix it, a lot of people have no idea how to open a Php file.
Just sayin' it's kinda a bad habit to use shorttags.