hello my friends, my name is angelina, this is my first posting, I am interested in creating a php program where the program can check whois, PR, search engine position with a key word, position in bing and yahoo. is there that can help me, what should I do?, whether this requires google API? please help me .. I was confused how to start, please help from the master php programming. sorry if this question is that questions have been asked.
This is quite a lot of code, maybe it would be easier to make a php program to get the results from tools that already do this?
You would have to use curl to post the domain into the form of a site that offers whois service or insert it into a url if you can do that and the collect the result data and display it.
This should get you started: <?php function domain_check($domain) { $data = 'http://'.$domain; // Create a curl handle to a non-existing location $ch = curl_init($data); // Execute curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_exec($ch); // Check if any error occured if(curl_errno($ch)) { return '<span style="color:#22c922">The domain is available!</span>'; } else { return '<span style="color:#c92222">The domain is not available</span>'; } // Close handle curl_close($ch); } // Usage: if(isset($_POST['domain'])) { echo domain_check($_POST['domain'].$_POST['tld']); } ?> <form method="POST" action=""> http:// <input type="text" name="domain"> <select name="tld"> <option value=".com">.com</option> <option value=".net">.net</option> <option value=".biz">.biz</option> </option> <input type="submit" value="Check"> </form> Code (markup):
Yes it does. - Since its not refering to any specific tld within the function (just the form - which I believe is only listing the most popular tld's).
Thanks LittleJonSupportSite. i will try this script, and if I have problems, still may I ask on this beloved forum?