$url="http://www2.videogaga.lv/video"; $v = file_get_contents($url); $pat="#<script\s+type=\"text/javascript\">(.*)<\/script>#is"; preg_match($pat,$v,$poc); print_r($poc);