Forum Moderators: coopster

Message Too Old, No Replies

Tag styles

short vs script

         

matthewwithanm

6:18 pm on Jul 27, 2005 (gmt 0)

10+ Year Member



Could somebody please explain to me what advantages there are (other than length) to using the recommend XML style tag ( <?php...?> ) to the script style ( <script language = "php">...</script> )?

Thanks.

yellow_nemo

6:22 pm on Jul 27, 2005 (gmt 0)

10+ Year Member



I don't think there's any advantage. It's just a matter of preferences. I read that the safest way is to use the long tags (<?PHP?>). The short tags (<?>) are use for xml parsing, so if you have php and xml together then the xml parser will get confused.