$code = file_get_contents("http://pr-cy.ru/"); preg_match('/\<div id\="up"\>(.*?)\<\/div\>/s', $code, $out); echo $out[1];