Category: PHP

Reverse IP Lookup, FREE PHP Tool

Reverse IP Lookup, Search for domains hosted on a single IP address

As some of you have probably already noticed I’ve added a new link/script/tool to the site. I have a bunch of these one offs scripts scattered around the internet. I’m currently trying to rope them all into one location.

But basically this tool will look ups and reports what other domains are hosted on a particular server. It’s actually fairly simple and works off of an operator that most are not aware of.

How it works. Simply just add a domain with the dubb and the tool will do the rest. I capped it off at 30 results. So even if there are thousands the tool will only report back 30 other domains.

Google Favicon API, PHP Code

I ran into something very, very interesting today. Google Favicon API
(A Favorite Icon API)
. It’s an API that allows you to pull websites Favicons, plus the API dynamically converts the image into a PNG format. This actually comes at a great time because I was just thinking the other day that since I have the option to add offsite URL’s to my site now. Would’nt it would be supa cool if I could also included their Favicon? To beak it down if you look into my site’s right side navigation you will see the “Links” category. Well I thought it would be nice, I mean supa cool if I had a script that could automatically include the corresponding sites Favicons.  And BAM! Thanks Google Favicon API. I wrapped this APIs up with some cURL and a little PHP and now I have a working PHP function. I don’t know much about the Google Favicon API but it looks like it’s been around for about a year. So it’s a good chance that this API could suddenly up and move or disappear all togehter. Basically what I’m saying is I don’t know how long the good times will last. So in my opinion I suggest you consider the use of this script temporary until you can get the time to build a much reliable one yourself.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?PHP
function getFavicon($var){
$filName=substr($var,0,-4);
$fp = fopen ('folder/'.$filName.'.png', 'w+');
$ch = curl_init('http://www.google.com/s2/favicons?domain='.$var);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_exec($ch);
curl_close($ch);
fclose($fp);

}

$var='techcrunch.com';
getFavicon($var);
?>

Display duplicate Keywords from your Title Tag, PHP Code

Display duplicate Keywords from your Title Tag, PHP Code. I whipped this up really quick so please don’t criticize. It’s probably going to be the basis to something much bigger. But I was recently in the need of a script that could flag and report what keywords I had repeated in a list of given title tags.

You all in the SEO business understand that repeating keywords a bunch of times (A.K.A keyword stuffing) is not a tactic that should be practiced.

Feel free to use it and twist it up, but please let me know what you come up with. This would probably be even more valuable if there was some kind of white list feature to take advantage of. I’ll add it if I end up growing this out.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?
function whosUnique($str){
   $parsStr=explode(' ', strtolower($str) );
   $wordArray=array_unique($parsStr);
   $result = array_diff_assoc($parsStr, $wordArray);

return array($str,$parsStr,$wordArray,$result);
}

$str="Briefcases &amp; Totes - Business Tote, Men's Briefcases, Women's Briefcases";

$result = whosUnique($str);

print '<pre>';
print_r($result);
print '</pre>';
?>

Copyright © 2024 Joseph Tinsley

Theme by Anders NorenUp ↑