<?php $url ="http://hos.co.il/"; $buffer = file_get_contents($url); $a = preg_match('/<title>(.*?)<\/title>/' , $buffer); echo "$a"; ?>