Page 1 of 1

favicon?

Posted: Sat Dec 31, 2005 9:30 am
by s.dot

Code: Select all

[Sat Dec 31 10:29:42 2005] [error] [client 68.154.79.158] File does not exist: /home/scott/public_html/404.shtml
[Sat Dec 31 10:29:42 2005] [error] [client 68.154.79.158] File does not exist: /home/scott/public_html/favicon.ico
[Sat Dec 31 10:29:42 2005] [error] [client 68.154.79.158] File does not exist: /home/scott/public_html/404.shtml
[Sat Dec 31 10:29:42 2005] [error] [client 68.154.79.158] File does not exist: /home/scott/public_html/favicon.ico
[Sat Dec 31 10:29:38 2005] [error] [client 68.154.79.158] File does not exist: /home/scott/public_html/404.shtml
[Sat Dec 31 10:29:38 2005] [error] [client 68.154.79.158] File does not exist: /home/scott/public_html/favicon.ico
[Sat Dec 31 10:29:38 2005] [error] [client 68.154.79.158] File does not exist: /home/scott/public_html/404.shtml
[Sat Dec 31 10:29:38 2005] [error] [client 68.154.79.158] File does not exist: /home/scott/public_html/favicon.ico
what's this mean?

Posted: Sat Dec 31, 2005 9:44 am
by josh
favicon is an icon that loads into the browser window and appears next to your site in bookmark lists, any ico file with the right dimensions will work. There are tons of free tools for making your own if you google for it.


the 404.shtml means that is apache's error page, which it cannot find, what you need to do is go into httpd.conf and change it to something like 404.php, then make 404.php your error page... that way your error page can be in yoru template. What you have probably been seeing when you get a 404 is your browser's default error message, that's what happens when your 404 page get's a 404

now you obviously didn't google this first did you? :wink:

Posted: Sat Dec 31, 2005 10:49 am
by Deemo
phpdn has a favicon, its the 3 ball thing

Posted: Sat Dec 31, 2005 5:56 pm
by m3mn0n
My best guess would be: The file does not exist. :wink: :lol:

Posted: Sat Dec 31, 2005 6:40 pm
by Gambler
Some browsers look for favicon despite the fact that you did not link to it in your HTML. IMO, this behavior sucks. Just ignore those messages.

Posted: Sun Jan 01, 2006 9:22 am
by trukfixer
rather than ignore them, what I would do is 'touch' or create a 1x1 pixel image and name it favicon.ico and place it in document_root directory- teh errors should stop, and it wont screw up teh browser's rendering of it :)

However, there are several free tools to create favicon.ico which work pretty well :)

(Photoshop has an extension or plugin for this as well, I believe)

Bri!

Posted: Sun Jan 01, 2006 1:58 pm
by AKA Panama Jack
Add this to the HTML header for each page...

Code: Select all

<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
Then place the favicon.ico file into the root directory for the web site.

You can create your own favicon from any graphic you supply through the web site below. You do not need to install any unnecessary programs on your conputer to create your own favicon.ico file.

http://www.chami.com/html-kit/services/favicon/

Posted: Sun Jan 01, 2006 3:35 pm
by Roja
AKA Panama Jack wrote:

Code: Select all

<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
Actually, IANA has chosen the type "vnd.microsoft.icon" for favicons: http://www.iana.org/assignments/media-t ... osoft.icon

The x-icon choice was a temporary one until IANA endorsed a specific type.

Code: Select all

<link rel="shortcut icon" href="favicon.ico" type="image/vnd.microsoft.icon">
Notably, IE6, Firefox1+, Safari, and Konqueror all support the correct and endorsed icon type.

Opera has not done so yet. (At least, it doesnt seem to do so in the beta of O9 I'm testing).

Also, something I didn't realize:
The rel attribute must contain a space-delimited list of link types, so a two-word link type would not be understood correctly by conforming web browsers.
So apparently, rel should be set to "icon", not "shortcut icon". Wikipedia suggests doing both.

Posted: Sun Jan 01, 2006 4:13 pm
by AKA Panama Jack
Roja wrote:
AKA Panama Jack wrote:

Code: Select all

<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
Actually, IANA has chosen the type "vnd.microsoft.icon" for favicons: http://www.iana.org/assignments/media-t ... osoft.icon

The x-icon choice was a temporary one until IANA endorsed a specific type.

Code: Select all

<link rel="shortcut icon" href="favicon.ico" type="image/vnd.microsoft.icon">
Notably, IE6, Firefox1+, Safari, and Konqueror all support the correct and endorsed icon type.

Opera has not done so yet. (At least, it doesnt seem to do so in the beta of O9 I'm testing).

I think you will find that the vast majority of web sites do not use that type tag for the ico. Heck, even microsoft doesn't even use it. ;) You will find that most sites that have favicons either do not specify the type of they use type="image/x-icon". I think you will find that is used because it will will work the any browser while the one you mentioned will not. Actually if you want the type attribute can be left off like many sites are doing. This will allow the browser to determing the type on it's own. :)

Posted: Sun Jan 01, 2006 4:18 pm
by Roja
AKA Panama Jack wrote:I think you will find that the vast majority of web sites do not use that type tag for the ico. Heck, even microsoft doesn't even use it. You will find that most sites that have favicons either do not specify the type or they use type="image/x-icon". I think you will find that is used because it will work with any browser while the one you mentioned will not. Actually if you want the type attribute can be left off like many sites are doing. This will allow the browser to determine the type on it's own.
All true.

But just because it is widely done, doesn't make it the correct choice for standards based development. link=icon, type=vnd.microsoft.icon is what we should be using. One manufacturer failing to embrace that standard is their problem, not the web's. :)