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.

:?:

Hello.

place an icon in your web directory called

favicon.ico

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

<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />

check this page out for more

SE (Dave)

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!!! :D :D

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

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";
	}

:rolleyes:
Thats for Danielle, j/k!!:o

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.

make sure your favicon.ico is a 16x16 pixel image

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.