juust ~ php oddities

Unordered list of one element
  • rss
  • begin
  • about
    • vcard
    • WTF is BroJesus
  • php scripts
    • flickr wp widget
    • google multi key serp tool, php script
    • gwt plugin
  • php classes
    • php pagerank class
    • fibonacci class
    • robots.txt parser php class
  • serp
    • serp dashboard wordpress plugin
  • services

seo tricks : old wine in new bags…

juust | 26/09/2008

Get some pagerank : this trick would require tedious boring link checking, but since SeoLinx (an extension of SeoQuake) that has become a lot easier. SeoLinx shows the stats of a links target url so you don’t have to go to every page to retrieve the stats. Cool plugin. Let’s put it to some practical use.

the trick : comment on old forum threads

Once you have SeoLinx installed find an ‘old’ forum, register if you haven’t already and make sure you get a signature link. Sometimes you first have to be a member for a week or write ten posts, but once you have a sig-link you get backlinks off the forum.

Then go comment on really old forum threads.

With SeoLinx you can easily spot the juicy old threads. Old threads on for instance DigitalPoint or Webmasterworld are sometimes pagerank 3. In case of the DP post, PR2 with 8 posts at the time of writing.

Pick a forum, and browse to the last page of the threads. Hover over the thread anchor and SeoLinx shows you the pagerank of the thread page. As long as the number of posts is below (10, 16 depending on the forum settings) you can put your comments in and they will appear on the first page of that thread, that has that nice pagerank and juice.

Old wine in new bags can be a sweet thing.

the benefit

A pagerank 3 ‘targetted’ anchor is worth about $9,- a month, $100,- per year. It can take an hour to find a juicy one, but hey, $100,- value for an hours work is well worth the trouble.


I might make this a blog feature, seo tips and tricks of the month.

Comments
2 Comments »
Categories
links, pagerank, seo, seo tips and tricks
Tags
links, pagerank, seo, seo tips and tricks
Comments rss Comments rss
Trackback Trackback

Spidering

juust | 28/08/2008

Someone asked about the ‘pagerank spider’, I put the code online as is, it isn’t finished and if I wanted to finish it I would make a few changes.

the main remaining issues are

  • 1 memory usage
  • 2 how to handle the www.-prefix
  • 3 indexed pages at google
  • 4 http codes

1 a big class uses a lot of memory, a mysql backed version has an extra dependency, takes longer to develop and is slower. I needed a fast spider for a quick feedback on a small site.

Check out phpDig, they have a mature open-source(?) spider with a mysql backend, and a usergroup and forum.

2 google have a section where you can choose to have all domain pages indexed represented as either juust.org or www.juust.org. It hints on that having an influence on page ranking but no actual straight forward ‘rule’. I have no idea what the actual impact is.

3 google index and cache pages when spidering other sites that link to yours. If the page the link points to was valid at the time, the page it links to is indexed and cached. Especially with files you dumped, or query-result pages, search pages, you cannot remove the cached page but it is counted to your site.

Putting search pages on ‘noindex’ is smart, especially if you use one of these funky search box gadgets in your template that can list any result, if someone queries your site for (nasty+term) and puts the query as link to your search page, once the link is followed a page from your site loaded with (nasty+term) is indexed and you cannot erase it from the cache, so then you have a problem. Put the file on robots=”noindex”, and try and confine the search to your own domain, or use a profanity filter.

4 http-codes, I checked them out for a link-validator routine two weeks ago, I might be adding that mysql backend after all, and make a more sturdy version, but not for the next few weeks.

———
Some background info
searchtools.com /robots /robot-checklist

phpDig

Comments
No Comments »
Categories
pagerank, php
Tags
pagerank, php
Comments rss Comments rss
Trackback Trackback

php link directory mod : page rank per page

juust | 20/08/2008

Lets add a seo stats plug in to phpLinkDirectory, page rank per page, same method as the Socialize bookmark plug-in.

The actual code to retrieve the pagerank is in pr.php, so I only need a tiny bit of code for prank.php :

  1. include('pr.php');
  2. $URL = "http://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
  3. $prank = pagerank($URL);
  4. $tpl->assign('prank', $prank);

I zipped the files :

download

  • put pr.php and prank.php in the link directory root
  • add require_once ‘prank.php’; to index.php (below “require_once ‘init.php’;”)
  • add {$prank} somewhere in footer.tpl

Enjoy.

If you are commercially smart, you want to make sure a rank shows only if the page actually has a rank. In pr.php, change the function curl_getpr() :

  1.  if(!$data) {
  2.    curl_close($cr);
  3.    unset($cr);
  4.  
  5. //   $pr="not ranking";
  6.                         $pr = "";
  7.  
  8.    return $pr;
  9.  } else {
  10.   $pos = strpos($data, "Rank_");
  11.   if($pos === false){} else{
  12.    $pr=substr($data, $pos + 9);
  13.    $pr=trim($pr);
  14.    $pr=str_replace("\n",'',$pr);
  15.    curl_close($cr);
  16.    unset($cr);
  17.  
  18. //   return $pr;
  19.                         return "This page has a Google pagerank of ".$pr;
  20.  
  21.   }
  22.          }
  23. }

Then, only if you have a rank you get an actual remark in the footer.

In case of trouble :
pr.php uses the cUrl library, if cUrl does not work on your server,
www.highrankforum.com/ has a version without cUrl.

If you are on an IIS server and get in trouble, on IIS the $_SERVER['REQUEST_URI'] serverside
variable is empty.

Try using $_SERVER['SCRIPT_NAME'].$_SERVER['PATH_INFO'] in stead of $_SERVER['REQUEST_URI'] in prank.php :
$URL = “http://” . $_SERVER["HTTP_HOST"] . $_SERVER['SCRIPT_NAME'].$_SERVER['PATH_INFO'];

Comments
2 Comments »
Categories
links, pagerank, php
Tags
links, pagerank, php
Comments rss Comments rss
Trackback Trackback

« Previous Entries

Recent Posts

  • Pagerank sculpting session
  • wish you were here
  • interesting : seo panel
  • availability test
  • Mayday

click me!
rss
Comments rss
Blog Directory
Web Developement Blogs - BlogCatalog Blog Directory
Listed in LS Blogs the Blog Directory and Blog Search Engine
Blog Flux Directory
joopita.com free web directory and search engine
design by jide
sitemap
17240 confirmed spam kills