I have been trying to create a plagiarism webpage.It will take the input from a text box and search in Google. if found it will display the results. Now the problem is , its searching the whole text at once but i need that to search 10 words at a time, and should search till the end in loops of 10 words.
Here is my code:
//Google search code
if(isset($_POST['nm'])) {
$query = $_POST["nm"];
$string = str_replace(' ', '%20', $_POST["nm"]);
}
$url = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=".$string;