Results 1 to 6 of 6

Thread: Just an idea, no-one would notice but it might make the VB-Forums slightly faster

  1. #1

    Thread Starter
    Addicted Member Xenonic_Rob's Avatar
    Join Date
    Jun 2000
    Location
    England, UK
    Posts
    213

    Just an idea, no-one would notice but it might make the VB-Forums slightly faster

    John.

    I've noticed that your and images are shown on the screen with exact URLs to that path, for example http://161.58.186.97/images/off.gif. That means that the server has to check that the user is online or offline before the page is loaded. I think it'd be better, quicker, and more efficient for the VBBrowser by Geoff_xrx or whatever his name is, if you linked to it like this:

    http://161.58.186.97/status.php?user=Xenonic_Rob

    And the PHP script would automatically redirect to the correct image. The pages would load quicker because the server would not be needing to look for the user's status BEFORE the rest of the page had loaded.

    Just a thought.

    Rob Wright
    E-mail: [email protected]
    Website: http://www.xenonic.com
    The First Member of Honeybee's Club
    Favourite words: Zugzwang and Empiric

  2. #2
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    593
    I'm not sure that idea would be so great. Firstly, the online/offline images are decided all in one main query, with a huge SQL join. To see what I mean, add &explain=1 to the end of the URL.

    Secondly, calling up 30 odd extra PHP scripts just to display one page would give horrible results to the server, and caching would get in the way too.

    John

  3. #3

    Thread Starter
    Addicted Member Xenonic_Rob's Avatar
    Join Date
    Jun 2000
    Location
    England, UK
    Posts
    213
    Ahhhh well... just an idea

    Rob Wright
    E-mail: [email protected]
    Website: http://www.xenonic.com
    The First Member of Honeybee's Club
    Favourite words: Zugzwang and Empiric

  4. #4
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    593
    Thanks, keep them coming

    John

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Wow...that &explain=1 thing's pretty neat A lot of queries there
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  6. #6

    Thread Starter
    Addicted Member Xenonic_Rob's Avatar
    Join Date
    Jun 2000
    Location
    England, UK
    Posts
    213
    Yeah, just a few... !

    Rob Wright
    E-mail: [email protected]
    Website: http://www.xenonic.com
    The First Member of Honeybee's Club
    Favourite words: Zugzwang and Empiric

Posting Permissions

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



Click Here to Expand Forum to Full Width