Jump to content
MakeWebGames

Recommended Posts

Posted

Heres a little admin tool I've put together. This tool will parse out your search engine ranking on Google, Yahoo and MSN for a particular keyword

or key phrase. You can even add multiple keywords to check several at a time. I'm having a small issue with it though. For some reason, it always says 0 for the page rank. I'm hoping someone will look through my code and post a fix.

Screenshot of main page:

41420795.jpg

Screenshot after searching:

86911391.jpg

 

 

Intructions:

Make a new file called staff_pagerank.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted
$keywords[0]

 

well mabe its because that 0 needs to be changed to the keywprds you have? Just a guess though im not a coder or nothing lol I havent learn PHP yet

Actually that's just an array. That's not the problem but at least you tried. :thumbup:
Posted

ob_start();

include_once($fetch_url);

$page = ob_get_contents();

ob_end_clean();

use your code to get the contents of a page (from google or wherever) then post those contents into a textbox, and then copy/paste it onto this thread. I want to look at that, I bet that's where the error is coming from.

Posted

This part hurts me:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

First of all, retreiving content with an include, means it could run whatever code as if it found the <?php ?> tags it will be run on your site!

Also, the quickest way to retrieve content from another page would be:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Now if you need more control over the HTTP protocol you can use the curl library or even the sockets directly but this is kinda overkill.

  • 2 weeks later...
Posted

Thanks Bertrand for the advice. I know this isn't the best coded mod, but it's free. I've tried, and tried, and tried on this mod and can't seem to fix it. Maybe someone can help me find a fix?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...