vb2all
09-08-2011, 01:15 PM
Hello
I have to redirect the pages of Foreign Affairs Forum programmer language xml
Such as:
http://egyview.com/vb/url.php?ref=http://shoghlanty4arab.blogspot.com/
Required:
I want to add php function cod to (xml page) to retrieve the page address against it
CODE follows:
<?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/");
?>
I have to redirect the pages of Foreign Affairs Forum programmer language xml
Such as:
http://egyview.com/vb/url.php?ref=http://shoghlanty4arab.blogspot.com/
Required:
I want to add php function cod to (xml page) to retrieve the page address against it
CODE follows:
<?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/");
?>