Log in

View Full Version : Favicon with php?


Fulla
07-03-2009, 10:36 AM
Been reading lots of tutorials on this. I've managed to generate a favicon.ico & upload into my root folder.

The problem is all of them then give a next step of adding a html line into your index.
My index is however in php, so not sure how to accomplish this?

I came across a php tut, tried it but also failed:

<?php
require_once('favicon.inc.php');

$favicon = new favicon('http://www.controlstyle.ru/', 0);
$fv = $favicon->get_output_data();

if ($fv!=='')
{
header('Content-type: image/png');
echo $fv;
}
?>


Please help, thank you.

Dismounted
07-03-2009, 10:42 AM
vBulletin already comes with a default favicon. All you need to do is replace the existing favicon with the new one. You may also have to clear your cache for it to take effect.

Fulla
07-03-2009, 10:55 AM
Ah yea thx, I replaced that & it now work atleast on frontpage/portal
How can I get it working on the forums section?

Main Page - www.gamingcraft.net - Works fine.
Forums - www.gamingcraft.net/forum - Does not work.

Dismounted
07-03-2009, 11:15 AM
As I mentioned above, you may have to clear your cache and restart your browser for favicon changes to take effect. I have just visited your forum and I see a favicon that is different to the default vBulletin one.

MattZ DSLR
07-10-2009, 02:19 AM
I replaced my and its not showing
any ideas
www.nikon-digital.ca

Dismounted
07-10-2009, 05:02 AM
I can see a non-default favicon showing on your forum. As above, you may have to clear your cache and restart your browser for favicon changes to take effect.

Welshy2008
07-11-2009, 04:29 PM
It can take a day or two to show too.