Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Paul Lautman
April 16, 2006, 11:13 pm
rate this thread
There is a setting in your php.ini file called short_open_tags. If it
is enabled, you can use <? instead of <?php. However, because xml also
uses the short tag <?, and for compatibility with different servers, it
is generally recommended that you use the longer <?php tag.
On Mon, 17 Apr 2006 00:13:32 +0100, Paul Lautman wrote:
While I agree with CJ and Scott, there is a useful construct that can be
used with short tags (<?) and if your code is running on a server you
control (as can be the case for a lot of web developers, run clients code
on servers you control) it can make for easier to read code:
is equivalent to:
<?php echo $foo ?>
Anyway, just thought I'd add that in.
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos