Go Back   Web Design & SEO Company > Free Scripts

Free Scripts Free Scripts to add to your website, includes Ajax, Javascript, php, Flash, CSS, HTML and more. No registration is required to download, these scripts are provided free to help you make the most of your website.

Reply
 
  #11  
Old 07-01-2009, 07:17 PM
Admin's Avatar
Administrator
 
Join Date: Jan 2007
Location: Taree
Posts: 607
Default

There is not much data output to really warrant writing it to a text file, but if you do the PHP functions fopen fwrite and fclose will allow you to do this.

These scripts are fairly old, so i don't keep them updated and i'm surprised this one still works with the changes search engines make. However feel free to edit this however you want. Here is a link to the PHP manual for the functions you want:

http://us3.php.net/manual/en/function.fwrite.php

It's fairly easy just fwrite the $url, $pagerank, $alexa_rank and $backlinks variables to a .txt file the same way it's echoed to the screen like in the template:


HTML Code:
<h2>Results</h2> <a href="http://$url" title="Visit: $url">Your Site</a> has a Google PageRank of <strong>$pagerank</strong>, an Alexa Rank of <strong>$alexa_rank</strong>, and an average of <strong>$backlinks</strong> backlinks.
Reply With Quote
  #12  
Old 07-01-2009, 07:43 PM
Junior Member
 
Join Date: Jul 2009
Posts: 5
Default

Hi Admin and thanks for response;
But in what class i have to do this?
Reply With Quote
  #13  
Old 10-28-2009, 01:17 AM
Junior Member
 
Join Date: Oct 2009
Posts: 4
Exclamation Questions

Hello folks,

Im new to this forum (great forum thumbs up Admin!), found this site a few days ago by Google when I was looking for Wordpress themes. Tonight I was browsing my bookmarks and ended up here again. After reading some topics I registered myself because I have some questions after this topic.

As newbie PHPer I tried this script. Its old but seemed to work fine but only then I was wondering somethings like:

First question
Some sites apear with pagerank 0 while they have a pagerank. And I think it hasnt got anything to do with the configuration. Why?

http://www.ad-idem.net/pagerank/index.php Shows the same result, try for example: http://www.gamelux.nl/

The scripts shows 0 but the pagerank is 2 in this example. (This is only a example the website is a dutch gamingcommunity. If you think it is spamm you can remove the url after reading.)

I tried to detect the 'bug' but I could not find it..

Second question
Im missing the new searchmachine of Microsoft: Bing!. Me, as stated before newbie PHPer tried it myself. By surfing the internet I found some information however it doesnt seem to work.

The code for in the class:
Code:
function getBacklinksBing () {
            $url = $this->url['host'];
            $url = 'http://www.bing.com/search?q=' . urlencode($url);
            $data = $this->getPage($url);
            preg_match('#<span class="sb_count" id="count">1-20 of ([0-9\,]+) results</span>#si', $data, $p);
            $value = ($p[1]) ? number_format($this->toInt($p[1])) : 0;
            echo "\t<backlinksBing>$value</backlinksBing>\n";
            }
Question three:
When the results are shown it gives the amount of backlinks. I was wondering if its possible to make from every result a url to the searchmachine.

Example: http://www.cnn.com has 68.400 backlinks in Google. The result is a url to the searchmachine so people can see the backlinks themself.

Three questions which can improve your script. I hope you can make a update of this script, specially with Bing in and MSN Search out you should give it a try . Anyway tomorrow ill give it another shot if I have updates then I will post them here.

Kind regards,

Albert West
From the Netherlands
Reply With Quote
Top SEO Tool
Harvester and Mass Blog Commenter
Ultimate Wordpress Commenter

Reply

Tools
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP - Displaying Google Pagerank Admin Knowledgebase 3 08-16-2009 10:59 AM
Ajax Style Pagerank, Alexa, MSN, Yahoo Checker Admin Free Scripts 21 12-08-2008 12:25 AM
What is Pagerank? Admin SEO 6 05-01-2008 04:07 AM
8YO - Pagerank Fight Domain - 1999 Regged Admin Domains For Sale 0 12-01-2007 07:57 PM
Pagerank Update History Admin SEO 3 11-28-2007 07:01 AM



Knowledgebase | SEO | Free Scripts | Free Wordpress Themes | Free Graphics

Micro Niche Finder Review - eval gzinflate base64 decode


Forum time zone is GMT. Currently it's 05:14 AM.


Forum SEO | Chrome Plugins

Web Design & SEO Forums