which tag do you use?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply

What opening tag do you use?

this way ?
0
No votes
this way ?php
13
100%
 
Total votes: 13

malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

which tag do you use?

Post by malcolmboston »

Code: Select all

<?
or

Code: Select all

<?php
hey, you can tell alot about a person by the way they script.

personally i use <?php looks much nicer :lol:
Last edited by malcolmboston on Fri Feb 06, 2004 10:05 am, edited 2 times in total.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

I like

Code: Select all

<? //something ?>
but i use

Code: Select all

<?php //something ?>
Mark
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

for long chunks of code

Code: Select all

<?php //something ?>
to echo the variable:

Code: Select all

<form action="<?=$_SERVER["PHP_SELF"];?>">
........
</form>
User avatar
Derfel Cadarn
Forum Contributor
Posts: 193
Joined: Thu Jul 17, 2003 12:02 pm
Location: Berlin, Germany

Post by Derfel Cadarn »

i have seen more usefull discusions than this one.... 8)
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

always
<?php
?>
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

For compatability with hosts where short tags are disabled, it's best not to use them.
JPlush76
Forum Regular
Posts: 819
Joined: Thu Aug 01, 2002 5:42 pm
Location: Los Angeles, CA
Contact:

Post 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
Cruzado_Mainfrm
Forum Contributor
Posts: 346
Joined: Sun Jun 15, 2003 11:22 pm
Location: Miami, FL

Post by Cruzado_Mainfrm »

erm... i use <?php echo $var; ?>, not <?=$var?> , cuz u know.. the xml compatibility issue :wink: hint hint
Post Reply