1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

HTML in PHP: Which method is better?

Discussion in 'PHP' started by swift_lee_o, Mar 25, 2013.

  1. deathshadow

    deathshadow Acclaimed Member

    Messages:
    8,975
    Likes Received:
    1,635
    Best Answers:
    233
    Trophy Points:
    515
    #41
    Never say never -- as hard as I rag on using <?php ?> -- there are times where it's more appropriate; like when just gluing together simple includes. I just dislike it the moment you get more complex than that. As I was just recently reminded there's SSI/SHTML -- which as a stepping stone between HTML and PHP works remarkably similar to <?php ?> for nothing more than simple includes. If I was building a site that way, I'd still consider it... it just falls flat on it's face for larger more complex work.
    SEMrush
    EVERYTHING is another tool in the toolbox -- in this case we have a clawhammer, a deuce and a half lump, and a ball-pein. One's all purpose, one is brute force, another is for fine work. Never throw out a tool just because it doesn't fit todays task.
     
    deathshadow, Apr 18, 2013 IP
    SEMrush
  2. ezprint2008

    ezprint2008 Active Member

    Messages:
    612
    Likes Received:
    15
    Best Answers:
    2
    Trophy Points:
    90
    Digital Goods:
    4
    #42
     
    ezprint2008, Apr 21, 2013 IP
  3. ezprint2008

    ezprint2008 Active Member

    Messages:
    612
    Likes Received:
    15
    Best Answers:
    2
    Trophy Points:
    90
    Digital Goods:
    4
    #43
     
    ezprint2008, Apr 21, 2013 IP