Will my PHP scripts use too many resources?

Discussion in 'PHP' started by lateuk, Mar 20, 2007.

  1. #1
    Hello,
    I am using a script that checks a users hostname, and displays random banner adds depending on their country.

    Also the whole site is php based so i have a html header, footer, main page, and 2 sidebars all loaded by a php script.

    I have a photo page where people upload photos, they are resized, and put into a gallery (displayed using php code).

    I also have a phpbb running.

    and a photo of the day loaded and chosen bu php.

    The site is quiet at the moment, but i'm worried. Is this ever likely to cause an issue with processing power of my hosting company?

    Thanks

    Late
     
    lateuk, Mar 20, 2007 IP
  2. steb

    steb Peon

    Messages:
    213
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    doesnt sound too resource intensive to me. but if you get a million uniques a day, any hosting company wont like it, and you'll have to go to some sort of server farm.

    it all depends. you should hopefully see a gradual increase, and be able to tell if you are outgrowing your current set up.
     
    steb, Mar 20, 2007 IP
  3. streety

    streety Peon

    Messages:
    321
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Even if all you have are static html pages if the number of visitors really skyrockets you'll have problems. Any site/host would.

    Having said that though it doesn't sound like you are placing any undue load on the servers. Performing ip2country can be resource intensive so make sure you only do this once per visitor and then cache, perhaps in a session variable, the results. Apart from that I wouldn't worry.
     
    streety, Mar 20, 2007 IP
  4. lateuk

    lateuk Active Member

    Messages:
    317
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Thanks. I am no longer worried. :)
     
    lateuk, Mar 20, 2007 IP