PHP pages load very slowly

Discussion in 'PHP' started by IamNed, Jan 16, 2006.

  1. #1
    I have a simple website with basic php include functions. Nothign that complex yet it takes a very long tim to load the pages. These are simple pages without much code. I have no idea why it is taking so long to open the pages. HTML pages open quickly but php is very slow.
     
    IamNed, Jan 16, 2006 IP
  2. TheHoff

    TheHoff Peon

    Messages:
    1,530
    Likes Received:
    130
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hosted on Apache or IIS?
     
    TheHoff, Jan 16, 2006 IP
  3. mdvaldosta

    mdvaldosta Peon

    Messages:
    4,079
    Likes Received:
    362
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What's your server load? On a shared server?
     
    mdvaldosta, Jan 16, 2006 IP
  4. DavidAusman

    DavidAusman Peon

    Messages:
    399
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Mostly it is either because of server problem or looping error. Double check if you had made looping error
     
    DavidAusman, Jan 17, 2006 IP
  5. Uvex

    Uvex Peon

    Messages:
    510
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Do the pages have lots of images on them? A lot of content? How many includes are you trying to do?
     
    Uvex, Jan 17, 2006 IP
  6. IamNed

    IamNed Peon

    Messages:
    2,707
    Likes Received:
    276
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I have 5 images on each page. One image is usually a header and the rest are neavigation buttons.

    I have about 6 includes per page with 300 words of content per page.

    I have a reseller hosting with apache.

    Whats a looping error?
     
    IamNed, Jan 17, 2006 IP
  7. Uvex

    Uvex Peon

    Messages:
    510
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #7
    5 images shouldn't cause the problem unless of course they are big ones with high resolutions. Would it be possible to have a look at the page at all?

    Might benefit us to actually see the conflicting page..
     
    Uvex, Jan 17, 2006 IP
  8. GeorgeB.

    GeorgeB. Notable Member

    Messages:
    5,695
    Likes Received:
    288
    Best Answers:
    0
    Trophy Points:
    280
    #8
    Code example? Link to the page?

    All you really told us is for example: My car is running slow. It's a simple little car without many features. How do I fix it?
     
    GeorgeB., Jan 17, 2006 IP
  9. TMan

    TMan Peon

    Messages:
    126
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Are you including things from other servers? Maybe they are slow...
     
    TMan, Jan 17, 2006 IP