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.

Which is more efficient? ECHO VS HTML

Discussion in 'PHP' started by MCJim, Jun 8, 2008.

  1. clinton

    clinton Well-Known Member

    Messages:
    2,166
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    110
    #21
    oh ok I see. but what I meant was, I think a part of the php engine is running because of the fact that it has a .php extension, it searches for tags inside-therefore taking more time than opening a plain html file. May be an entirely different process though. I'm not too familiar with the development of the Zend engine.

    thanks anyways:)

    btw, your from Tonga? I'd love to be there right now
     
    clinton, Jun 12, 2008 IP
  2. in2clearsky

    in2clearsky Peon

    Messages:
    121
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #22
    I don't like to use echo because it hard to modify later and if that html contain some javascript. I have to use escape char a lot. So i think the second is better for for maintainence and performanace.
     
    in2clearsky, Jun 12, 2008 IP
  3. clinton

    clinton Well-Known Member

    Messages:
    2,166
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    110
    #23
    Exactly how I feel, sometimes you have to use echo for php because of spacing problems etc when fragmenting code together, but overall I just end tag start tag around my php.
     
    clinton, Jun 13, 2008 IP