SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard Sillysoft's Avatar
    Join Date
    May 2002
    Location
    United States :)
    Posts
    1,691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question PHP on local server

    Dunno if this is OT. But I have a webserver running IIS on my cable connection with 256 up. It is a p4 1.7 with 512 megs of DDR. 30 gig hdd with 7200rpm. The problem is this. Im testing a php site on the server and when accessed locally, 192.168.x.x, it runs very fast! But if I type in the public ip address to the same site it runs slow. Im doing this locally on the same computer the website is located on. Now the server is behind a 4 port cable/dsl Linksys router. I am doing a forwarding to the ip address locally. So if the port is hit for the site the router forwards it to the ip address internally.

    Now the question is, is this a router issue? Perhaps the router is restricting incoming traffic? Perhaps it is the cable connection? Or maybe IIS or a combination of all 3? Is a forwarding not the right thing to do? Maybe it is a php setting?

    Thanks
    Silly

  2. #2
    SitePoint Enthusiast
    Join Date
    May 2003
    Location
    Serbia
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't really see what the connection with php might be.

    p.s. Get Apache (just a recommendation)
    Wondering about best weight loss pill? Take a look at Proactol.

  3. #3
    SitePoint Wizard Sillysoft's Avatar
    Join Date
    May 2002
    Location
    United States :)
    Posts
    1,691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I guess the question I should of asked was, what can I do to test the actual php scripts Im running to rule out php as the culprit

    Thanks
    Silly

  4. #4
    As the name suggests... trickie's Avatar
    Join Date
    Jul 2002
    Location
    Melbourne, Australia
    Posts
    678
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It probably has nothing to do with PHP.

    If the scripts run fine on localhost, then they will run the same otherwise.

    I'd say it is maybe the extra time taken for a DNS lookup etc?

    Once the server gets a request for a PHP page, the PHP execution time (of the instructions in the file) will be the same, no matter which IP you use.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •