469,125 Members | 1,777 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,125 developers. It's quick & easy.

favicon.ico file does not exist

File does not exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/favicon.ico
why i am getting this error??
Feb 28 '10 #1
11 40950
Dormilich
8,651 Expert Mod 8TB
the file is not there?
Feb 28 '10 #2
sorry,
i am new to php and wat is that file and why we need that file....???
Feb 28 '10 #3
Dormilich
8,651 Expert Mod 8TB
usually this is the icon a website displays in the address bar and similar places. but it beats me, why your script explicitly checks for that file.
Feb 28 '10 #4
I dont know...even i execute a simple info() script also getting the same error in logs...
Feb 28 '10 #5
I am getting this error when i use chrome..but not in IE...???
Mar 12 '10 #6
Niheel
2,429 Expert Mod 2GB
You are getting this error in your logs because you do not have this icon file in your root folder.

Some browsers won't call that file or they will cache it in the browser so it won't be requested again. IE is a browser that will cache the icon file on the first request.

As Dormilich said, it's the little icon at that you see next to the name of your website when you open a website in a browser. For example on Bytes, you will see a purple icon at the top next to the name of the page on the tab. This is our favicon.ico.

These images are also used by bookmarking services and when you bookmark a pages. It's an easy way to identify that youv'e landed on a page of a certain website.

You should always create a unique favicon.ico for your website, so your website visitors know that they've landed on a page of your website.
Mar 12 '10 #7
Thank You both Dormilich and kub365....i understood about the favicon i just create d the icon file and using <link> i linked with that icon file and my problem is solved...
Correct me if i am wrong...
Apr 12 '10 #8
Frinavale
9,735 Expert Mod 8TB
You should be using a URL to the favicon.ico file....it looks like you're trying to use the physical path on the server instead.

I think you have something like:
Expand|Select|Wrap|Line Numbers
  1. <head>
  2.   <link href="C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/favicon.ico" rel="SHORTCUT ICON">
  3. </head>
But you should have something like:
Expand|Select|Wrap|Line Numbers
  1. <head>
  2.   <link href="http://www.mydomain.com/favicon.ico" rel="SHORTCUT ICON">
  3. </head>
Apr 12 '10 #9
Markus
6,050 Expert 4TB
Most browsers will make a request for the favicon.ico, even if there is no <link ...> to the favicon, which is probably the cause of the error.
Apr 30 '10 #10
Frinavale
9,735 Expert Mod 8TB
*Most* being FireFox ;)
I don't think Internet Explore does something as silly as adding a link to your page for you (I personally think this is sort of dumb).
Apr 30 '10 #11
Markus
6,050 Expert 4TB
Chrome, too. :)
Apr 30 '10 #12

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by cfyam | last post: by
reply views Thread by netjanuszk7 | last post: by
23 posts views Thread by canabatz | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.