943,413 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 2851
  • PHP RSS
Jan 29th, 2005
0

Site Icon

Expand Post »
This is a simple thing but I havn't found it by searching so I will just ask.

I am not sure if this is a php code but since my CMS (e107) is written in it I felt I should ask here.

So the little icon you get in the Firefox tab or when bookmark a page in IE, how do you do that? I know how to make a little icon but what is the code?

I see Daniweb has one.

Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
Mighty_Squid is offline Offline
32 posts
since Jan 2005
Jan 29th, 2005
0

Re: Site Icon

Hello.

place an icon in your web directory called

PHP Syntax (Toggle Plain Text)
  1. favicon.ico

and stick this line in the <head> of your HTML

PHP Syntax (Toggle Plain Text)
  1. <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />

check this page out for more

SE (Dave)
Reputation Points: 11
Solved Threads: 8
Junior Poster
steveneven is offline Offline
147 posts
since Jan 2005
Jan 29th, 2005
0

Re: Site Icon

The right search term makes all the difference. I didn't know what what it was called.

Thanks you for the code for and the link!!!
Reputation Points: 10
Solved Threads: 0
Light Poster
Mighty_Squid is offline Offline
32 posts
since Jan 2005
Jan 29th, 2005
0

Re: Site Icon

no probs.

SE
Reputation Points: 11
Solved Threads: 8
Junior Poster
steveneven is offline Offline
147 posts
since Jan 2005
Jan 30th, 2005
0

Re: Site Icon

Or we can just be simple with PHP and make it like the cool way like this:

[PHP]
if (file_exists("THE LOCATION OF IT/favicon.ico")) {
echo "<link REL=\"shortcut icon\" HREF=\"THE LOCATION OF IT/favicon.ico\" TYPE=\"image/x-icon\">\n";
}
[/PHP] :rolleyes:
Thats for Danielle, j/k!!:o
Reputation Points: 16
Solved Threads: 3
Junior Poster
mikeSQL is offline Offline
196 posts
since Dec 2004
Jan 30th, 2005
0

Re: Site Icon

Will that work better? I use e107 for my CMS.

I put the favicon.ico in and used the html but it's really hit or miss if it shows up.
Reputation Points: 10
Solved Threads: 0
Light Poster
Mighty_Squid is offline Offline
32 posts
since Jan 2005
Jan 31st, 2005
0

Re: Site Icon

make sure your favicon.ico is a 16x16 pixel image
Reputation Points: 13
Solved Threads: 4
Posting Whiz
paradox814 is offline Offline
351 posts
since Oct 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Dynamic precaching...
Next Thread in PHP Forum Timeline: 301 Redirect





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC