Getting favicon from URL

images php coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
soder
New php-forum User
New php-forum User
Posts: 15
Joined: Fri Mar 16, 2012 7:38 pm

Sun Mar 18, 2012 11:33 am

Heya, Im not 100% sure if this is the right forum or not. If it's wrong forum please move it mod.

Im trying to get the websites favicon printed on my website and this is what im currently using:

Code: Select all

$favicon = "http://www.google.com/s2/favicons?domain=$row[link]";
<img src="$favicon\"></img>
The problem is it will only print the favicon for example "http://tibia.com", but not "http://www.tibia.com/news/?subtopic=latestnews".

Anyone got a code/tips for that?

Kind regards,
Soder.

soder
New php-forum User
New php-forum User
Posts: 15
Joined: Fri Mar 16, 2012 7:38 pm

Mon Mar 19, 2012 9:15 am

boybawang wrote:Favicon stands for "Favorites Icon". It's the little icon beside your site's name in the favorites list, before the URL in the address bar and bookmarks folder and as a bookmarked website on the desktop in some operating systems. Nice share :)



DBA Solutions
I know that. You probably didnt read my whole post or I explained it poorly.

It get's the favicon if the URL is
"http://tibia.com"
but not "http://www.tibia.com/news/?subtopic=latestnews".

Any solutions anyone?

Regards,
Soder.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests