Possible Duplicate:
<? ?> tags not working in php 5.3.1
I usually use shorthand syntax
<?="hello";?>
instead of
<?php echo "hello";?>
I created a development server and installed same version of php but shorthand method doesn’t work, why? how can I fix it?
I would ask this on the server site, but this is related to a php setting or something I believe.
I’m running linux fedora 14
You need to enable the short_open_tag option in the configuration file
php.ini(probably in/etc/). As you have discovered, short tags are disabled by default.Edit: and yes, as @Sebastian P points out, this has been asked before.