
11.06.2009, 23:21
|
|
Постоянный
Регистрация: 03.06.2009
Сообщений: 385
С нами:
8915117
Репутация:
389
|
|
PHP код:
<?php
$content = 'URL запроса: http://www.google.com/search?&hl=en&ie=UTF-8&q=site:.org.jm+inurl:"addguest.htm"+intext:register+site&num=100
Error: Is not found of any document appropriate to inquiry
STATUS :Получено 0 URL.';
preg_match('/inurl:"([^"]*)".*intext:([^\+|^\n]*).*STATUS :Получено (.+) URL/ism', $content, $match);
echo('inurl: ' . $match[1] . '<br>');
echo('intext: ' . $match[2] . '<br>');
echo('Получено: ' . $match[3] . ' URL');
?>
В $match[1] - параметры заданные в inurl
В $match[2] - параметры заданные в intext
В $match[3] - количество полученных url
|
|
|