View Single Post
(#10 (permalink))
Old
Leder678's Avatar
Leder678 Leder678 is offline
Senior Member
Leder678 is on a distinguished road
 
Posts: 1,614
Join Date: Jan 2009
Location: Norway
Send a message via MSN to Leder678
Default 07-22-2012, 11:06 AM

Quote:
Originally Posted by grace1004 View Post
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.


Follow me on twitter @Mortenrb

W3Fools - Read and learn

Please AT LEAST read the 10 bolded lines of the TOS at:
http://www.000webhost.com/includes/tos.php
Reply With Quote