Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Undo the search breakage

  • Loading branch information...
commit 01316303d11a8131fb8bf9924e041741dd271108 1 parent fbe440f
@FauxFaux authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  coke.php
View
2  coke.php
@@ -50,7 +50,7 @@ function parseTesco($content) {
function cmp($a, $b) {
return ($a->cost/$a->ml) > ($b->cost/$b->ml);
}
-$url = "http://www.tesco.com/groceries/product/search/default.aspx?searchBox=regular+coke";
+$url = 'http://www.tesco.com/groceries/product/search/default.aspx?searchBox=regular+"coca+cola"';
$tesco = parseTesco(gcc($url));
uasort($tesco, 'cmp');
reset($tesco);
Please sign in to comment.
Something went wrong with that request. Please try again.