PHP Coding Practices for High Traffic Websites...Advice?

Discussion in 'PHP' started by redbull, Aug 24, 2008.

  1. #1
    I have been hired to code a site in PHP/MySQL for a company who will have very large amounts of traffic. I don't want to overlook anything...can anyone give any tips or general coding practices for dealing with large traffic?

    Thanks.
     
    redbull, Aug 24, 2008 IP
  2. NatalicWolf

    NatalicWolf Peon

    Messages:
    262
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Cache data where possible...use ' where u use " if possible...Caching is the most important really. Also learn to use built in functions if possible
     
    NatalicWolf, Aug 24, 2008 IP
  3. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #3
    True caching is very important, but if you use a database you need to check if it can handle the amount of data that's asked by dynamic scripts. Normalize databases is most important. Don't save data you don't use or compile data on an insert to save server resources. Most databases do alot of reads, not inserts.
     
    EricBruggema, Aug 25, 2008 IP