Есть задача: с php страницы одного сайта унести инфу (причём не всю) на страницу другого сайта.
перепробовал кучу скриптов - не работает(
Код:
<?
$source = file_get_contents(&#39;тут адрес пишу&#39;);
//die($source);
if (!$source) die(&#39;Nothing found!&#39;);
preg_match_all(&#39;|align="top" vspace="2"></a>(.*?)</td>\s<td class="tdcontentsm">(.*?)</td>\s</tr>|is&#39;, $source, $match, PREG_SET_ORDER);
if (sizeof($match) < 1) die(&#39;No results&#39;);
die(print_r($match));
?>
Код:
<? *
$fd= fread(fopen("тут адрес пишу", "r"), 100000); *

if ($fd) *
 * * * *{ *
 * *$start= strpos($fd, "<html>"); *
 * *$finish= strpos($fd, "</html>"); *
 * *$length= $finish-$start; *
 * *$code=Substr($fd, $start, $length); *
 * *} *


echo $code; *
?>
и ещё много каких...
что скажете полезного?