Which is better to call for an image

Discussion in 'HTML & Website Design' started by suraja, Sep 19, 2010.

  1. #1
    Which do you think is better to call for an image, for better hosting resource

    1. Using http://domain.com/image.jpg

    Or

    2. Using path such "/image.jpg"

    Or using this

    3. php code on Wordpress such : <?echo get_settings('siteurl');?>/image.php
     
    Last edited: Sep 19, 2010
    suraja, Sep 19, 2010 IP
  2. CDJ

    CDJ Guest

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I do #1 frequently (which I think is the wrong method btw), but I believe #2 would be the correct way. #3 calls to the database too much (wrong? right? - Ima beginner myself)
     
    CDJ, Sep 19, 2010 IP
  3. Martenxxx

    Martenxxx Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you don't need generate URL to images dynamicly, choose between first and second method. Both are same for SEO.
     
    Martenxxx, Sep 24, 2010 IP