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
malcolmboston
DevNet Resident
Posts: 1826 Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK
Post
by malcolmboston » Fri Feb 06, 2004 9:33 am
or
hey, you can tell alot about a person by the way they script.
personally i use
<?php looks much nicer
Last edited by
malcolmboston on Fri Feb 06, 2004 10:05 am, edited 2 times in total.
JayBird
Admin
Posts: 4524 Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:
Post
by JayBird » Fri Feb 06, 2004 9:58 am
Weirdan
Moderator
Posts: 5978 Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine
Post
by Weirdan » Fri Feb 06, 2004 12:32 pm
for long chunks of code
to echo the variable:
Code: Select all
<form action="<?=$_SERVER["PHP_SELF"];?>">
........
</form>
Derfel Cadarn
Forum Contributor
Posts: 193 Joined: Thu Jul 17, 2003 12:02 pm
Location: Berlin, Germany
Post
by Derfel Cadarn » Fri Feb 06, 2004 1:35 pm
i have seen more usefull discusions than this one....
vigge89
Forum Regular
Posts: 875 Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden
Post
by vigge89 » Fri Feb 06, 2004 2:56 pm
always
<?php
?>
McGruff
DevNet Master
Posts: 2893 Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland
Post
by McGruff » Fri Feb 06, 2004 3:36 pm
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 » Fri Feb 06, 2004 5:46 pm
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 » Mon Feb 09, 2004 9:37 pm
erm... i use <?php echo $var; ?>, not <?=$var?> , cuz u know.. the xml compatibility issue
hint hint