MyBB Community Forums

Full Version: Favicon in PHP file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I add a favicon into a php file?
HTML is like that:
</b:skin>
<link href='http://DOMAIN.com/images/favicon.ico' rel='shortcut icon'/>
<link href='http://DOMAIN.com/images/favicon.png' rel='shortcut icon'/>

But in the PHP file?
same thing.
Or you could do it the hard way:
<?php
echo "<link href='http://DOMAIN.com/images/favicon.png' rel='shortcut icon'/>";
?>
Wich is better?
I used the one you posted.
Thanks.
Why would you put it in PHP?? o.O Why is that easier than in the templates/HTML??
Because some pages are php.
It is additional pages. Not the mybb pages.
MyBB I use the plugin!
=D