<?php $page_content = file_get_contents ('http://www.ya.ru'); preg_match_all( "|<title>(.*)</title>|sUSi", $page_content, $titles); print_r ($titles);?>