quote:
Originally posted by NanaFreak
quote:
Originally posted by davidpolitis
I changed the PHP opening to "<?php" because short tags (<?) need to be enabled on whatever server you decide to upload to.
this is not always the case, my host (hostgator) has short tags enabled by default, and really all hosts should (unless its a free host or something)
While I do realise
WAMPSERVER is not used for actual servers, it's default php.ini has short open tags disabled and says this:
quote:
Using short tags is discouraged when developing code meant for redistribution since short tags may not be supported on the target server.
Meh... it doesn't really matter. Everyone has their own preferences. E.g. usually I put all of my braces on new lines.