favicon.ico file does not exist

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Abhilash Etikala
    New Member
    • Jan 2010
    • 21

    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??
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    the file is not there?

    Comment

    • Abhilash Etikala
      New Member
      • Jan 2010
      • 21

      #3
      sorry,
      i am new to php and wat is that file and why we need that file....???

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        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.

        Comment

        • Abhilash Etikala
          New Member
          • Jan 2010
          • 21

          #5
          I dont know...even i execute a simple info() script also getting the same error in logs...

          Comment

          • Abhilash Etikala
            New Member
            • Jan 2010
            • 21

            #6
            I am getting this error when i use chrome..but not in IE...???

            Comment

            • Niheel
              Recognized Expert Moderator Top Contributor
              • Jul 2005
              • 2432

              #7
              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.
              niheel @ bytes

              Comment

              • Abhilash Etikala
                New Member
                • Jan 2010
                • 21

                #8
                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...

                Comment

                • Frinavale
                  Recognized Expert Expert
                  • Oct 2006
                  • 9749

                  #9
                  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:
                  Code:
                  <head>
                    <link href="C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/favicon.ico" rel="SHORTCUT ICON">
                  </head>
                  But you should have something like:
                  Code:
                  <head>
                    <link href="http://www.mydomain.com/favicon.ico" rel="SHORTCUT ICON">
                  </head>

                  Comment

                  • Markus
                    Recognized Expert Expert
                    • Jun 2007
                    • 6092

                    #10
                    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.

                    Comment

                    • Frinavale
                      Recognized Expert Expert
                      • Oct 2006
                      • 9749

                      #11
                      *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).

                      Comment

                      • Markus
                        Recognized Expert Expert
                        • Jun 2007
                        • 6092

                        #12
                        Chrome, too. :)

                        Comment

                        Working...