I would like to use php inside html to display favicon.ico
Posted: Mon Oct 01, 2007 2:36 pm
The Ninja Space Goat | Please use
link rel="shortcut icon" href="favicon.ico"> - This is how I normally use to display
Now that I am trying to use php inside this html code to display two different favicon.ico
for eg:
i couldn't execute this as i get some errors. I am totally new to this php code. I would like help on the
syntax
The Ninja Space Goat | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi,
I am trying to display two different favicon.ico in the url.
[syntax="html"]<html
<head> some head
<link rel="stylesheel" .......Now that I am trying to use php inside this html code to display two different favicon.ico
for eg:
Code: Select all
<html
<head> some head
<link rel="shortcut icon"<?php
if(something is true)
echo "href='favicon1.ico' ''; /*some syntax should be wrong here, please correct me*/
else
echo "href='favicon2.ico'?>"; /*and some syntax is wrong here as well*/
</html>syntax
The Ninja Space Goat | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]