Page 1 of 1

Using <?php or <? in short areas in a "PEAR"

Posted: Tue Oct 18, 2005 10:18 am
by Moocat
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; ?>"

Posted: Tue Oct 18, 2005 10:27 am
by Weirdan
<?php is the most portable way to embed php. It always work (unlike short_tags and asp_tags).

Posted: Tue Oct 18, 2005 11:15 am
by Maugrim_The_Reaper
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... :wink:

Posted: Tue Oct 18, 2005 11:50 am
by Moocat
BTW Maugrim, I like your work, read your PM if you haven't already :)