favicon?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

favicon?

Post 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?
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post 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:
Deemo
Forum Contributor
Posts: 418
Joined: Sun Jan 18, 2004 11:48 am
Location: Washington DC

Post by Deemo »

phpdn has a favicon, its the 3 ball thing
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

My best guess would be: The file does not exist. :wink: :lol:
Gambler
Forum Contributor
Posts: 246
Joined: Thu Dec 08, 2005 7:10 pm

Post 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.
User avatar
trukfixer
Forum Contributor
Posts: 174
Joined: Fri May 21, 2004 3:14 pm
Location: Miami, Florida, USA

Post 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!
User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Post 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/
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post 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.
User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Post 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. :)
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post 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. :)
Post Reply