hi. How to replace cnet.com with <? echo $website; ?> <?php $query = "site:mixx.com+linkdomain:cnet.com"; preg_match("/<strong id=\"resultCount\">([0-9,]*)<\/strong> results for<\/span>/", file_get_contents("http://uk.search.yahoo.com/search?p=".$query), $matches); $numberofresults = $matches[1]; echo $numberofresults; ?> PHP:
<?php $query = "site:mixx.com+linkdomain:".$website; preg_match("/<strong id=\"resultCount\">([0-9,]*)<\/strong> results for<\/span>/", file_get_contents("http://uk.search.yahoo.com/search?p=".$query), $matches); $numberofresults = $matches[1]; echo $numberofresults; ?> PHP: