Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.
Moderator: General Moderators
Moocat
Forum Contributor
Posts: 143 Joined: Wed Oct 12, 2005 9:28 am
Location: USA
Post
by Moocat » Tue Oct 18, 2005 10:18 am
I've decided to follow the PEAR standard but I've got a few questions. If you use a short output statement should you use <?php or <?
as follows:
Code: Select all
<FRAME NAME="location_frame" SRC="<?=$goto?>"
or
<FRAME NAME="location_frame" SRC="<?php echo $goto; ?>"
Weirdan
Moderator
Posts: 5978 Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine
Post
by Weirdan » Tue Oct 18, 2005 10:27 am
<?php is the most portable way to embed php. It always work (unlike short_tags and asp_tags).
Maugrim_The_Reaper
DevNet Master
Posts: 2704 Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland
Post
by Maugrim_The_Reaper » Tue Oct 18, 2005 11:15 am
Always use long tags. At least they're guaranteed to work...
Disable ASP tags...you won't like them if any application you run uses non standard HTML with tables...
Moocat
Forum Contributor
Posts: 143 Joined: Wed Oct 12, 2005 9:28 am
Location: USA
Post
by Moocat » Tue Oct 18, 2005 11:50 am
BTW Maugrim, I like your work, read your PM if you haven't already