Page 1 of 1
which tag do you use?
Posted: Fri Feb 06, 2004 9:33 am
by malcolmboston
or
hey, you can tell alot about a person by the way they script.
personally i use
<?php looks much nicer

Posted: Fri Feb 06, 2004 9:58 am
by JayBird
Posted: Fri Feb 06, 2004 12:32 pm
by Weirdan
for long chunks of code
to echo the variable:
Code: Select all
<form action="<?=$_SERVER["PHP_SELF"];?>">
........
</form>
Posted: Fri Feb 06, 2004 1:35 pm
by Derfel Cadarn
i have seen more usefull discusions than this one....

Posted: Fri Feb 06, 2004 2:56 pm
by vigge89
always
<?php
?>
Posted: Fri Feb 06, 2004 3:36 pm
by McGruff
For compatability with hosts where short tags are disabled, it's best not to use them.
Posted: Fri Feb 06, 2004 5:46 pm
by JPlush76
you should always use <?php
because XML markup tags start with <?
so how does a interpreter know the difference between
<?
and
<?
they can't obviously so good habit is <?php
Posted: Mon Feb 09, 2004 9:37 pm
by Cruzado_Mainfrm
erm... i use <?php echo $var; ?>, not <?=$var?> , cuz u know.. the xml compatibility issue

hint hint