this will get parts of websites on remote servers
just specify words in the remote source to start and end the output

extract string from offsite” makes use of the built-in PHP functions fopen( ), feof( ), trim( ), fgets( ) and preg_match( ).

01 <?php
02 
03 // the adress of the remote file to read
04 $off_site = 'http://fundisom.com/g5/';
05  
06 // you have to backslash certain characters !
07 $start = '<title>';
08 $end = '<\/title>';
09  
10 $fp = fopen($off_site, 'r') or die('Unable to open file '.$off_site.' for reading');
11 $cont = '';
12  
13 while(!feof($fp))
14 {
15     $buf = trim(fgets($fp, 4096));
16     $cont .= $buf;
17 }
18  
19 preg_match('/'.$start.'(.*)'.$end.'/s', $cont, $match);
20  
21 echo '
22     <p>
23         the title of '.$off_site.' is:<br />
24         <strong>'.$match[1].'</strong>
25     </p>';
26  
27 ?>