Hello

I have to redirect the pages of Foreign Affairs Forum programmer language xml

Such as:

http://egyview.com/vb/url.php?ref=ht....blogspot.com/

Required:
I want to add php function cod to (xml page) to retrieve the page address against it

CODE follows:
PHP Code:
<?php

function getTitle($Url){
        
$str file_get_contents($Url);
        if(
strlen($str)>0){
                
preg_match("/\<title\>(.*)\<\/title\>/",$str,$title);
                return 
$title[1];
        }
}
echo 
getTitle("http://shoghlanty4arab.blogspot.com/");
?>