Im after a php script that checks alexa rank, backlinks and indexed pages. There seems to be plently of sites that have the tool, but Im after the source code. Anyone know a good script that I can dload?
As for BLs and indexed pages - you'll need to use APIs - so i'd suggest starting at the Google API page, understand how it works, then follow links to the code you need for your purpose.
Does anyone know where I can get API examples in PHP? or info on how to write scripts for MSN, Yahoo and Google?
I havent found much. The only one i found used PEAR::SOAP which is a built-library and its a pain to get it running if you don't know what you're doing.
Actually I remember having a heck of a time getting this to work. Here's the code i'm currently using in my SEO tool to make Google API calls via php and SOAP. You need to get a hold of the nusoap.php file and have it in the same directory as the script your running and then include it. I ran into trouble loading duplicate classes so I had to edit the nusoap.php to make the soapclient2. // create a instance of the SOAP client object $soapclient = new soapclient2("http://api.google.com/search/beta2"); // uncomment the next line to see debug messages //$soapclient->debug_flag = 1; // set up an array containing input parameters to be // passed to the remote procedure $params = array( 'key' => $api, // Google license key 'q' => $search_term, // search term 'start' => 0, // start from result n 'maxResults' => 10, // show a total of n results 'filter' => true, // remove similar results 'restrict' => '', // restrict by topic 'safeSearch' => true, // remove adult links 'lr' => '', // restrict by language 'ie' => '', // input encoding 'oe' => '' // output encoding ); // invoke the method on the server $result = $soapclient->call("doGoogleSearch", $params, "urn:GoogleSearch", "urn:GoogleSearch"); PHP:
Try www.hotscripts.com I've seen some free PR and backlink scripts on there you can use for nothing There are some ones you can also pay for, they might be better, I was looking for free scripts so I never checked them out
<?php $url = ‘bytechip.com’; $new_url = ‘http://www.alexa.com/siteinfo/’.$url; $contents=file_get_contents($new_url); /* This will find the Global Alexa Rank */ $start = strpos($contents, “<div class=\â€data up\â€>â€) +119; $stop= strpos($contents,â€<div class=\â€label\â€>Alexa Traffic Rankâ€); $result = substr($contents,$start,$stop-$start); echo “Global Alexa Rank for “.$url.†= “.$result; ?> Code (markup): SOURCE: http://www.bytechip.com/2010/04/get-alexa-rank-using-php/
Have you tried rentacoders? I had them create a shopping cart for me a few years ago before shopping carts were easy to get and the process was very easy. Not sure if you were looking to pay and outsource it though.
check out this class from google code http://code.google.com/p/seostats/ does everything you asked and is very simple to setup.
I had tried that its not working on www.netalien.biz any idea how to make it work for me please give me a step bySTEP ADVICE I AM A NOVOICE CODER
Hi Raju, i am the author of SEOstats PHP class and just stumpled upon your post. There have been no reported issues with the class and after testing your provided domain with th demo, i still can not find any bugs. But maybe you can let me know, what specificly not works for you, so i can have a look at it and (if needed) fix that issue. Thanks, stephan
review my question, then your reply. it seems like you don't have a clue on what you're doing and i don't have the time for 0.5st level support.. actually it was just a coincidence that i saw your post and thus requested more details. but as you did not provided such, i "moved on".. respectfully, stephan