[dba-VB] favicon (was: Syslogs)

Gustav Brock Gustav at cactus.dk
Tue Jun 30 12:06:25 CDT 2009


Hi Drew

That gives me an idea regarding favicon.

I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed.
Some common methods are:

    <!-- Favicon for IE browsers -->
    <link rel="shortcut icon" href="favicon.ico" />
    <!-- Favicon for other browsers -->
    <link rel="icon" href="favicon.ico" />

This typically doesn't work. These may:

<link rel="shortcut icon" href="/favicon.ico" />

mtaulty.com/CommunityServer:
<link rel="shortcut icon" type="image/ico" href="/CommunityServer/favicon.ico" />

<link rel="shortcut icon" href="http://www.examplesite.com/favicon.ico" type="image/x-icon" />  

The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these.
So how about using your method:

<link rel="shortcut icon" href="http://127.0.0.1/favicon.ico" type="image/x-icon" />  

or localhost:

<link rel="shortcut icon" href="http://localhost/favicon.ico" type="image/x-icon" />  


Anyone having experience with this?

/gustav


>>> DWUTKA at marlow.com 30-06-2009 18:49 >>>
Actually, if you have an IP address, it is real.  It then gets into what
it is used for.  For example, with your wireless, if it's not connected,
it won't have an IP address.  If a standard NIC is not connected, it
will show no address.  If it IS connected, but not receiving an IP
address, it will default to a (I think) 169 something, which is a hard
coded address, which means nothing.

You can also have internal addresses such as 127.0.0.1, which is a
loopback to your local machine. (so if you are running a website,
putting in http://127.0.0.1 on the server will give you the local
website).

Drew






More information about the dba-VB mailing list