shortysbest Posted April 1, 2010 Share Posted April 1, 2010 I know how to put a favicon in with html, but how would i with php? Quote Link to comment https://forums.phpfreaks.com/topic/197293-php-favicon/ Share on other sites More sharing options...
jcbones Posted April 1, 2010 Share Posted April 1, 2010 Same way you would with HTML. As you see, HTML is a hypertext language that you MUST use for the browser to correctly display a website. PHP outputs anything you want, but if you want a website to look correct, PHP will have to output HTML. Therefore, a favicon file MUST be included in the head section of the HTML output that reaches the browser. Quote Link to comment https://forums.phpfreaks.com/topic/197293-php-favicon/#findComment-1035526 Share on other sites More sharing options...
GetPutDelete Posted April 1, 2010 Share Posted April 1, 2010 If you're looking to specify a special favicon location in the HEAD then just do it the same way you would in HTML <?php echo '<head>... Quote Link to comment https://forums.phpfreaks.com/topic/197293-php-favicon/#findComment-1035536 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.