Diesel Posted November 13, 2009 Posted November 13, 2009 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: Screenshot after searching: 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. Quote
Gucci Mane Posted November 13, 2009 Posted November 13, 2009 $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 Quote
Diesel Posted November 13, 2009 Author Posted November 13, 2009 $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: Quote
seanybob Posted November 13, 2009 Posted November 13, 2009 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. Quote
a_bertrand Posted November 13, 2009 Posted November 13, 2009 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. Quote
Diesel Posted November 22, 2009 Author Posted November 22, 2009 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? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.